I suppose you already got an answer to this one, but I will post anyway.
Variable declaration
01 EOF-SWITCH PIC X(01) VALUE SPACE.
--->88 NOT-END-OF-FILE VALUE SPACE.
--->88 END-OF-FILE VALUE 'Y'.
You set the switch to a certain start-value, perform until other value is set.
Before process:
Set the value---> SET NOT-END-OF-FILE TO TRUE / MOVE SPACE TO EOF-SWITCH
Process:
Test for new/other value of variable
SET NOT-END-OF-FILE TO TRUE
PERFORM UNTIL END-OF-FILE
--->When you want set new/other value
--->SET END-OF-FILE TO TRUE or MOVE 'Y' TO EOF-SWITCH
END-PERFORM
processing continues here...
YIIHAAA, my first post in this forum !!!
