SORT-CORE-SIZE

The SORT-CORE-SIZE special register is the name of a binary data item that you can use to specify the number of bytes of storage available to the sort utility.

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


01  SORT-CORE-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.

The amount of storage indicated in the SORT-CORE-SIZE special register does not include memory areas required by COBOL library functions not related to the SORT or MERGE function. It also does not include the fixed amount of memory areas (modules, control blocks, fixed-size work areas) required for the sort and merge implementation.

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