There are several ways that you can change an option in 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=your.PUBLIC.I9118391.PARM(EQUALYES),DISP=(SHR)
Contents of .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.