END


The END control statement allows DFSORT to discontinue reading SYSIN, DFSPARM or SORTCNTL before end of file (EOF). If END control statement 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. If any other control lines coded after END, DFSORT will ignore those.

Syntax -


END

Example-1


The below control line 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
/*

Example-2


The below control line 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
/*