Previous Topic: END IF Statement

Next Topic: END STEP Statement

Example

Enter the following statements to terminate the processing step after the last record is selected by the IF statement and write the fields to the FILE SORTIN file:

IF FLAG1 HAS ANY BITS OFF '04'.
     WRITE VOLSER DSN LJOB.
     NEXT RECORD.
END IF.