When your job has run successfully, edit the data set containing
the JCL and change or add control statements as indicated below:
//SORT JOB 'accounting_data',
// 'user_name',
// NOTIFY=&SYSUID,
// MSGCLASS=H,
// MSGLEVEL=(1,1),
// CLASS=5A6B7C8D
//STEP1 EXEC PGM=SORT 1
//SYSIN DD *
SORT FIELDS=(1,75,CH,A) 2
/*
//SYSOUT DD SYSOUT=* 3
//SORTIN DD *
NEPTUNE
PLUTO
EARTH
VENUS
MERCURY
MARS
URANUS
SATURN
JUPITER
/*
//SORTOUT DD SYSOUT=*
/*
- 1
- Replace the program name with the name of your sort program.
In this job, SORT will sort the input data identified by the SORTIN
DD statement.
- 2
- Add the SYSIN control statement. SYSIN specifies how you want
the sort to be done. In this case, you are indicating that you want
to sort the fields from column 1 to column 75 as characters in ascending
sequence.
- 3
- Add the SYSOUT control statement. SYSOUT specifies the data
set to which SORT will write its messages. A SYSOUT data set is a
system-handled output data set. This data set is placed temporarily
on direct access storage. Later, the system prints it or sends it
to a specified location.
When you have finished entering the JCL into the data set, submit
the job as you did in Step 3. submit the JCL to the system as a job.