How to change option settings easily in CA Sort batch jobs.

Document ID : KB000051228
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

You want to change the value for an option in a CA Sort batch job for one run only, or from time to time.

Solution

There are several ways that you can change an option in CA Sort for z/OS in a batch job. The examples below use the EQUALS option as an example.

  • In an EXEC statement -
    //CASORT EXEC PGM=SORT,REGION=1024K,PARM=EQUALS
  • In an OPTIONS statement ?
    //SYSIN DD *
    OPTION EQUALS
    SORT FIELDS=(5,10,BI,A,1,1,BI,A,15,2,BI,A), FILSZ=E20000
    /*
  • In a CASOPARM DD data set. The DD specifies the DSN of a dataset with LRECL=80. The data set must contain only one record, with values entered
    free form, without the keyword PARM= -
    //CASOPARM DD DSN=MFLVOL.PUBLIC.I9118391.PARM(EQUALYES),DISP=(SHR)
    Contents of MFLVOL.PUBLIC.I9118391.PARM(EQUALYES):
    ********************************* Top of Data ********
    EQUALS
    ******************************** Bottom of Data ******
    or:
    //CASOPARM DD *
    EQUALS
    /*

Note: The box in the job log that lists the setting for all of your options will reflect the settings in the CA71A000 file, not the actual settings used in the sort.