The END IF statement terminates conditional processing started by an IF statement.

END IF.

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.