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.

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

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.

SORT-CORE-SIZE can be used in place of the MAINSIZE or RESINV control statements in the sort control file:

  • The 'MAINSIZE=' option control statement keyword is equivalent to SORT-CORE-SIZE with a positive value.
  • The 'RESINV=' option control statement keyword is equivalent to SORT-CORE-SIZE with a negative value.
  • The 'MAINSIZE=MAX' option control statement keyword is equivalent to SORT-CORE-SIZE with a value of +999999 or +99999999.

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