SORT-MODE-SIZE
The SORT-MODE-SIZE special register is the name of a binary data item that you can use to specify the length of variable-length records that occur most frequently.
Restriction: The SORT-MODE-SIZE special
register is not applicable
to sorting a table with the format 2 SORT statement.
The SORT-MODE-SIZE special register has the implicit definition:
01 SORT-MODE-SIZE GLOBAL PICTURE S9(5) USAGE BINARY VALUE ZERO.
When used in nested programs, this special register is implicitly defined with the global attribute in the outermost program.
SORT-MODE-SIZE is equivalent to the 'SMS=' control statement in the sort control file.
You can specify the SORT-MODE-SIZE special register in a function wherever an integer argument is allowed.