CONTINUE is a real COBOL statement that has no effect upon the execution of the program.
CONTINUE is most useful within a conditional phrase of another statement when no action is desired when the condition occurs (that is, correct COBOL syntax requires a statement even though the programmer wants nothing done).
Code:
READ MASTER-FILE
AT END
IF TOTAL-RECORD-COUNT > 0
CONTINUE
ELSE
PERFORM PROCESS-EMPTY-FILE
END-IF
SET MASTER-AT-END TO TRUE
NOT AT END
ADD 1 TO TOTAL-RECORD-COUNT
END-READ
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.