SORTING VARIABLE-LENGTH RECORDS - IBM Mainframe

Although you cannot specify RECORDING MODE V in the SD entry (which does not allow the RECORDING MODE clause), the compiler determines that the records in the new file are of variable length if:

  • The input file to the new file has variable-length records.
  • The SD includes more than one record description and the records are of different lengths.
  • The SD includes a RECORD IS VARYING IN SIZE clause.

If the input file for the new file contains variable-length records, specify the record length that occurs most frequently in the input file (the modal length) on the SMS= control card or in the SORT-MODE-SIZE special register. Use of the SMS control card or SORT-MODE-SIZE special register is optional, but it can improve sort performance.


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

IBM Mainframe Topics