November 17, 2020, 12:05 PM
jif26[SOLVED] OCCURS and specifying the occurrence
Hi there, I have a MASTER with an OCCURS segment.
I just want to print the first occurrence. I see how to define it no problem, just don't know how to reference it.
Basically I want to do something like this:
TABLE FILE
PRINT A(1)
END
This message has been edited. Last edited by: FP Mod Chuck, November 17, 2020, 12:50 PM
Danny-SRLYou can add a logical field to your OCCURS segment with ACTUAL=ORDER and then issue
IF ORDER EQ 1
November 17, 2020, 01:05 PM
jif26Thanks. So this IF just prints out the first occurrence of the field.
This doesn't interfere with the row selection criteria I assume?
November 18, 2020, 03:18 PM
Danny-SRLThe first record.