FASTSRT
FASTSRT determines whether DFSORT or comparable product performs input and output for sort and merge, or whether they are performed by Enterprise COBOL. It applies only to sorting files by using the format 1 SORT statement.
- Default
- FASTSRT=NO
- YES
- Specifies that the IBM® DFSORT
licensed program or comparable product performs input and output when
you use either the USING or GIVING option.
Performance consideration: Using FASTSRT=YES eliminates the overhead, in terms of CPU time usage, of returning to Enterprise COBOL after each record is processed. However, there are restrictions that you must follow if you choose to use this option. (For a detailed description of the restrictions, see Improving sort performance with FASTSRT in the Enterprise COBOL Programming Guide.)
- NO
- Specifies that Enterprise COBOL does the input and output for the sort and merge.
Note:
- If FASTSRT is in effect at compile time, the compiler verifies
that the FASTSRT interface can be used for all restrictions except
these two:
- A device other than a direct-access device must be used for sort work files.
- The DCB parameter of the DD statement for the input file or output file must match the file description (FD) of the file.
- If FASTSRT cannot be used, the compiler generates a diagnostic message and prevents the sort program from performing I/O when using either the USING or GIVING options. Therefore, it might be to your advantage to specify YES as the default.