Displaying the current occurrence value in an FEO loop
Jump to navigation
Jump to search
In User Language, the OCC IN phrase lets you refer back to the label of a FOR EACH OCCURRENCE OF (FEO) statement to get the number of the current field occurrence in the loop. For example:
ff: FEO MISCINFO
%array(OCC IN ff) = VALUE IN ff
...
If you are debugging a request that contains FEO loops, you can easily display the current occurrence number value in the Debugger Client:
- In the Source Code page, right click on a line that contains an FEO statement.
- Select FEO OCC IN value from the context menu.
The occurrence value displays in the Value of OCC IN for FEO loop window.
The Client feoDisplay command performs the same operation.