JCL, Data Definition Operation
Part Two - Challenge #06


You will learn more about the JCL DD, Data Definition operation

In challenge #05 you were introduced to JCL.

You learned about the relationship between a program file name and the DDNAME.

Bottom line
A program file name must be spelled the same as the DDNAME for the system to locate the physical inputs and outputs.

In challenge #06 you are introduced to JCL DD operation parameters which are used to
describe the program inputs and outputs.

Helpful Information about JCL DD Operation

Many JCL DD parameters exist which can appear confusing. However, learning the most common parameters is pretty easy.

Most common JCL DD parameters include:

     Data Set Name of the physical resource, typically DSN= abbreviation is coded
       z/OS has several Data Set Name types and DSN= handles all Data Set Name types
       More about the different Data Set Name types later in the contest
  • DISP=
     DISPOSITION of the DSNAME physical resource
       DISP=SHR -- resource exists and program will share access with others
       DISP=NEW -- resource is created for program output
       DISP=OLD -- resource exists and program wants exclusive access
  • PATH=
     Unix file name path of the physical resource
       Enclosed in quote marks - reason:
       Unix file names and file path are case sensitive where JCL is normally UPPERCASE
    Access file options and Status file options
       More about the PATHOPTS= Access and Status file options later
  • *  (asterisk)
      What follows the asterisk ' * ' is data - NOT JCL
       The data in the JCL stream will be understood by the program
       The program is looking for the DDNAME to read followed by the data lines
       The data lines are read until the next JCL statement is found
  • SYSOUT=*
      Write the data to the system JES spool data set
       The JES spool data set is what SDSF is viewing - which you have already done.

Useful Information
You will have several SORT05 JOBNAMEs with unique JOB numbers.

From SDSF status panel, entering ' p ' to the left of any SORT05 JOBNAME will purge unwanted output.


Edit, modify, and submit JCL using different SORT control input
Challenge #06 uses the same JCL you used in challenge #05.

Enter dslist command from ISPF as follows to display Data Sets Matching Z#####.JCL
  Reminder - substitute your ID for Z#####
In the command column enter 'e' to the left of the partitioned data set name Z#####.JCL as displayed below.
A partioned data set has member names.

Enter 's' to left of member name CH05JCL.
ISPF EDIT is now able to modify member name CH05JCL in partitioned data set Z#####.JCL.

Enter ISPF commands as displayed below to remove ==MSG> lines and hilite JCL reserved words.
If you successfully completed challenge #05, then JCL has a modification on line 000005 .

Line 000007 is data read by SORT program.

Program SORT is looking for SYSIN DDNAME to provide sort control instructions.

The control statement instructs the program to sort the data from SORTIN starting
in column 1 for a length of 5 using character CH format and ascending A order.

Helpful Trick:
Enter bd over top of line number 000004 or 000005 to browse the data in the data set name member.

F3 will return you back to the ISPF edit session.
The challenge task:
  1. While browsing 'bd' SORTIN data, enter cols to view column numbers
      Locate column number of last name, then F3 to return to SORT05 edit session
  2. Modify SORTOUT member name from #05 to #06
    IMPORTANT: If not done, then you will replace the valid challenge #05 answer
        Rerun of challenge #05 would be necessary to correct #05
  3. Modify sort control statement using column number of last name
      Sort length, character format, and order can remain the same
  4. Submit the JCL with the modified sort control statement and review the output

You practiced what you learned in the previous challenge,
"how to submit JCL and view the JCL JOBNAME output"

Feel free to check your P2.OUTPUT(#06) written by SORT program based upon your control statement change, then move on to the next challenge!

Next: Challenge #07