END


The END control statement allows DFSORT to discontinue reading SYSIN, or SORTCNTL before end of file (EOF). If it is coded in the sequence of control lines, that describes that the DFSORT control lines ends with END. Only user exit statements can be coded after END. DFSORT ignores any other control lines that are coded after END.

Syntax -

END

Examples


Scenario1 - Sorts the data based on 1 to 7 characters in ascending order and ignores the DYNALLOC.

//SYSIN DD *
  SORT FIELDS=(1,7,CH,A)
  END
  OPTION DYNALLOC
/*

Scenario2 - Sorts the data based on 1 to 7 characters in ascending order and processes the E15 user exit options.

//SYSIN DD *
  SORT FIELDS=(1,7,CH,A)
  END
   Option for E15 user exit here
/*