Optionally, you can pass information to DFSORT through control statements contained in the run­time data set IGZSRTCD. Use this technique only if you want to change the system defaults in order to improve the performance of your sort operations. The control statements you can include in the IGZSRTCD (in the order listed) are:

  • SMS=nnnnn where nnnnn is the length, in bytes, of the most frequent record size. (Use only if the SD is variable.)
  • OPTION (except SORTIN= and SORTOUT=).
  • Other DFSORT control statements (except SORT, MERGE, RECORD, END).

Format of the Control Statements in IGZSRTCD

Control statements must be coded in the order listed above, and must be between columns 2 and 71. You can continue a record by ending the line with a comma and continuing the next line with a new keyword. No labels or comments are allowed on the records, and the record itself cannot be a DFSORT comment statement. Default Characteristics of the IGZSRTCD Data Set are given below:

  • LRECL=80
  • BLKS1ZE=400
  • DD name is IGZSRTCD (You can change this by using the SORT-CONTROL special register.)

The IGZSRTCD data set is optional. If you provide a DD statement for the SORT-CONTROL data set and you receive the message IGZ027I, an OPEN failure occurred and should be investigated.

Using Control Statements

The FASTSRT option will not take effect for input if an input procedure is used or for output if an output procedure is used in the SORT statement. Many functions usually performed in an input or output procedure are the same as those done by the DFSORT functions like INREC, OUTREC, INCLUDE, OMIT, STOPAFT, SKIPREC, SUM, etc.

You may be able to eliminate your input and output procedures. To do so, code the appropriate DFSORT program control statements and place them in either VS COBOL ll's IGZSRTCD data set or the DFSORT SORTCNTL data set, thereby allowing your SORT statement to qualify for FASTSRT.

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

IBM Mainframe Topics