DYNSORT


Use the DYNSORT option to set the values you want to use for the unit type, the number of records to sort, the main storage available to sort direct pointers, and the main storage available to sort symbolic pointers.

The Full Checking technique invokes your installation’s sort product internally to sort the following:

  • Direct pointers that could not be validated during the scanning/in-memory validation phase
  • Symbolic pointers and/or HIDAM root keys

The Full Checking technique uses the SORTWKnn sort work areas for the direct pointer sort. The Full Checking technique uses the SYMBWKnn sort work areas for the symbolic pointer sort. The Hash Checking technique does not use these data sets.

If you do not provide the DD statements for the SORTWKnn and SYMBWKnn data sets, PCP can instruct your sort product to dynamically allocate the intermediate sort work areas and override your installation’s sort option (option DYNALOC of the sort product) for the main storage made available to the sort product.

You can use the Workfile and Sortwork Information report to tune the values that PCP passes to the sort product allocate the sort work areas. See Tuning-work-file-allocation-values for more information.

Note

This option is not available under the Hash Checking technique.

Uses

You can set the DYNSORT option at the following levels:

  • Global options module
  • Generated JCL
  • GLBL control statement

Note

Starting with IMS version 10, PCP no longer uses the subparameter dirsize and symsize of the DYNSORT option.

ISPF panel field

Sort Work unit

  • Estimated Number of Records to be Sorted
  • Override Direct Sort Size
  • Override Symbolic Sort Size

PCPSYSIN keyword

DYNSORT(unit,size,dirsize,symsize)

Values

Specify one or more of the following positional values. If you omit one of the values, use a comma to indicate the omission.

  • unit

    Describe the unit type (1-8 characters).

  • size

    Provide the factor to multiply by 1000 to get the estimated number of records to be sorted. The factor can be 1-99999.

  • dirsize

    Tell PCP how to code the MAINSIZE keyword to override the installation option for the amount of main storage available when sorting direct pointers:

    • NO

      Omit the MAINSIZE keyword.

    • MAX

      Code MAINSIZE=MAX.

    • 0

      Use PCP internal default values of MAINSIZE=MAX for non-XA systems and MAINSIZE=512K for XA and ESA systems.

    • nnnnn

      Specify a factor to multiply by 1024 to get the value to code for the MAINSIZE keyword. The factor can be 1-99999.

  • symsizeTell PCP how to code the MAINSIZE keyword to override the installation option for the amount of main storage available for sorting symbolic pointers:
    • NO

      Omit the MAINSIZE keyword.

    • MAX

      Code MAINSIZE=MAX.

    • 0

      Use PCP internal default values of MAINSIZE=MAX for non-XA systems and MAINSIZE=512K for XA and ESA systems.

    • nnnnn

      Specify a factor to multiply by 1024 to get the value to code for the MAINSIZE keyword. The factor can be 1-99999.

Default

SYSDA,500,0,0

Example

The following example shows how to code the DYNSORT option if you want to use the default unit type, you have approximately 2 million records to sort, and you want to provide 800 KB for each sort task (direct and symbolic).

GLBL DYNSORT(,2000,800,800)

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*