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.
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.
References to the SORT-FILE-SIZE special register are resolved by the compiler; however, the value in the special register has no effect on the execution of a SORT or MERGE statement.
You can specify the SORT-FILE-SIZE special register in a function wherever an integer argument is allowed.