Exercise 1
Create member EX7 in library data set &SYSUID.JCL.CNTL, by copying member EX5. Modify EX7 to include both an In-stream Procedure element and its invoking Job Control. The details below offer guidance on the number and type of statements required, plus an indication of some of the parameters, which may be needed.
JOB Statement
- Job name to be based on the TSO userid in use
- Accounting information is not required.
- Use your name as the programmer's name.
- Memory requirement is for 4096K.
- Job to run in a class 'A' initiator.
- You are to be notified when the job ends.
PROC statement
- Use the name field of this statement to name the procedure.
PEND Statement
- Place one of these at then end of the procedure.
DD statements within the procedure
- Remember the restrictions of use.
- Move restricted DD statements to after the invoking EXEC statement.
- Include symbolic parameters on SYSUT2 for the following:
- Data set name high level qualifier and relative generation number
- Unit type.
- Primary and Secondary space requests.
EXEC statement - for Invoking the Procedure
- Execute the procedure as per the name field of the PROC statement
Symbolic parameters
- The symbolic parameter introduced on SYSUT2 will require assignments and this can be done:
- On the PROC statement for default assignments
- On the invoking EXEC statement
Click here for possible solutions.
Copyright © KMS-IT Limited 2002, 2003