SORT-FILE-SIZE

The SORT-FILE-SIZE special register is the name of a binary data item that you can use to specify the estimated number of records in the sort input file, file-name-1.

Restriction: The SORT-FILE-SIZE special register is not applicable to sorting a table with the format 2 SORT statement.

The SORT-FILE-SIZE special register has the implicit definition:


01  SORT-FILE-SIZE GLOBAL PICTURE S9(8) USAGE BINARY VALUE ZERO.

When used in nested programs, this special register is implicitly defined with the global attribute in the outermost program.

SORT-FILE-SIZE is equivalent to the 'FILSZ=Ennn' control statement in the sort control file.

You can specify the SORT-FILE-SIZE special register in a function wherever an integer argument is allowed.