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. It 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:
You can specify the SORT-CORE-SIZE special register in a function wherever an integer argument is allowed.