Beruflich Dokumente
Kultur Dokumente
UNIT
Topics:
Analyzing Procedures Changing EXEC Parameters Override Statements Nullification Statements Addition Statements Sequencing Multiple Changes
Page 2 of 58
Introduction
Page 3 of 58
Introduction
Page 4 of 58
UNIT
Topics:
Analyzing Procedures Changing EXEC Parameters Override Statements Nullification Statements Addition Statements Sequencing Multiple Changes
Page 5 of 58
Introduction
Page 6 of 58
Concepts
Page 7 of 58
A list of orders to be filled is sent to the warehouse and an invoice is sent to each customer. The order list and associated invoices are printed once a week.
Continued
Concepts
Copyright IBM Corp., 2000, 2004. All rights reserved.
Page 8 of 58
Continued
Concepts
Copyright IBM Corp., 2000, 2004. All rights reserved.
Page 9 of 58
Continued
Concepts
Copyright IBM Corp., 2000, 2004. All rights reserved.
Page 10 of 58
Concepts
Page 11 of 58
Based on the analysis of the JCL in the previous example, do you think this is an appropriate procedure for the task, as described? A. No, because not all data sets are taken into consideration. B. There is not enough information to decide. C. Yes, because both criteria are met.
Review
Page 12 of 58
//PSTEP1 EXEC PGM=PROG1,TIME=(1,30) //DD1 DD DSN=INTRAN,DISP=SHR //DD2 DD DSN=MASTER,DISP=SHR //DD3 DD SYSOUT=A //DD4 DD DSN=&&VALID, // UNIT=SYSDA,DISP=(NEW,PASS), // SPACE=(TRK,(1,1)) //PSTEP2 EXEC PGM=PROG2,TIME=5 //DD5 DD DSN=&&VALID, // DISP=(OLD,DELETE) //DD6 DD SYSOUT=A
Page 13 of 58
In addition, a TIME parameter is included on the PSTEP1 and PSTEP2 EXEC statements to restrict the amount of time the programs are permitted to use the central processor.
Continued
Concepts
Copyright IBM Corp., 2000, 2004. All rights reserved.
Page 14 of 58
Concepts
Page 15 of 58
Review
Page 16 of 58
A procedure must meet which of the following criteria? A. Most of the DD statements are usable as they are or might need some minor alteration. B. The programs in the procedure are located in the same library.
Review
Page 17 of 58
SYSOUT
Glossary
Page 18 of 58
Summary
Page 19 of 58
UNIT
Topics:
Analyzing Procedures Changing EXEC parameters Override Statements Nullification Statements Addition Statements Sequencing Multiple Changes
Page 20 of 58
Introduction
Page 21 of 58
Continued
Concepts
Copyright IBM Corp., 2000, 2004. All rights reserved.
Page 22 of 58
//STEP1 EXEC
procedure name,parameter
//DD1
DD
parameter
//DD2
DD
parameter
Override
Nullify
Add
Concepts
Page 23 of 58
//JSTEP EXEC //
procedurename, parameter.procstepname=value
Implementing coding changes to EXEC statements involves the following steps: Give the name of the EXEC statement parameter to be overridden, nullified or added, followed by a period. Give the name of the procedure step, followed by an equal sign. Give the new value for the parameter if overriding or adding a value. Do not code a value if the parameter is to be nullified.
Changes are specified in the EXEC statement that invokes the procedure.
Concepts
Copyright IBM Corp., 2000, 2004. All rights reserved.
Page 24 of 58
Changing parameters at the time you invoke a procedure has what effect? A. Changes apply to the number of invocations you specify in the JCL. B. Changes apply to all procedures containing the edited parameters.
Review
Review
Page 25 of 58
Which of the following changes can you make at the time you execute a procedure? A. Temporarily add operands such as ACCT to procedure EXEC statements B. Alter the library copy of the JCL contained in cataloged procedure
Review
Page 26 of 58
Summary
Introduction
Page 27 of 58
UNIT
Topics:
Analyzing Procedures Changing EXEC parameters Override Statements Nullification Statements Addition Statements Sequencing Multiple Changes
Page 28 of 58
Introduction
Page 29 of 58
EXEC DD
Continued
Concepts
Copyright IBM Corp., 2000, 2004. All rights reserved.
Page 30 of 58
EXEC DD DD DD DD
EXEC DD
PGM=PROG1,TIME=3 DSN=INTRAN,DISP=SHR DSN=MASTER,DISP=SHR SYSOUT=A DSN=&&VALID, DISP=(NEW,PASS), UNIT=SYSDA, SPACE=(TRK,(1,1)) PGM=PROG2,TIME=5 DSN=&&VALID, DISP=(OLD,DELETE) DD SYSOUT=A
Concepts
Page 31 of 58
EXEC DD DD EXEC DD
Code a statement to invoke the procedure named MYPROC. Assume you want to restrict the amount of time PROGA is permitted to use the CPU to 2 minutes.
Review
Review
Page 32 of 58
Summary
Introduction
Page 33 of 58
UNIT
Topics:
Analyzing Procedures Changing EXEC parameters Override Statements Nullification Statements Addition Statements Sequencing Multiple Changes
Page 34 of 58
Introduction
Page 35 of 58
Continued
Page 36 of 58
Concepts
Page 37 of 58
EXEC DD DD
Continued
Concepts
Copyright IBM Corp., 2000, 2004. All rights reserved.
Page 38 of 58
EXEC DD DD DD DD
EXEC DD DD
PGM=PROG1 DSN=INTRAN,DISP=SHR DSN=MASTER,DISP=SHR SYSOUT=A DSN=&&VALID, DISP=(NEW,PASS), UNIT=SYSDA, SPACE=(TRK,(1,1)) PGM=PROG2,TIME=5 DSN=&&VALID, DISP=(OLD,DELETE) SYSOUT=A
Concepts
Page 39 of 58
EXEC DD EXEC DD
Assume that for this use of the procedure, you want to return to the installation-defined CPU time limit for PROGB. Code the statement to invoke MYPROC.
//JSTEP
EXEC __________
Review
Page 40 of 58
Summary
Page 41 of 58
UNIT
Topics:
Analyzing Procedures Changing EXEC parameters Override Statements Nullification Statements Addition Statements Sequencing Multiple Changes
Page 42 of 58
Introduction
Page 43 of 58
Addition
Continued
Concepts
Copyright IBM Corp., 2000, 2004. All rights reserved.
Page 44 of 58
Note the following points when sequencing multiple EXEC statement additions: The additions are in procedure step sequence. A comma separates the name of the procedure from the first parameter addition, and the parameter additions from each other.
Continued
Concepts
Copyright IBM Corp., 2000, 2004. All rights reserved.
Page 45 of 58
EXEC DD DD DD DD
EXEC DD DD
PGM=PROG1,TIME=(1,30) DSN=INTRAN,DISP=SHR DSN=MASTER,DISP=SHR SYSOUT=A DSN=&&VALID, DISP=(NEW,PASS), UNIT=SYSDA, SPACE=(TRK,(1,1)) PGM=PROG2,TIME=5 DSN=&&VALID, DISP=(OLD,DELETE) SYSOUT=A
Continued
Concepts
Copyright IBM Corp., 2000, 2004. All rights reserved.
Page 46 of 58
EXEC DD DD DD DD
EXEC DD DD
PGM=PROG1,TIME=(1,30) PARM=01/29/91 DSN=INTRAN,DISP=SHR DSN=MASTER,DISP=SHR SYSOUT=A DSN=&&VALID, DISP=(NEW,PASS), UNIT=SYSDA, SPACE=(TRK,(1,1)) PGM=PROG2,TIME=5 PARM=01/29/91 DSN=&&VALID, DISP=(OLD,DELETE) SYSOUT=A
Concepts
Page 47 of 58
Assume that for this invocation of MYPROC, you wish to add the date 01/11/99 to PROGA and PROGB. (You do so through the PARM parameter.) Code the statement to invoke MYPROC.
Review
Page 48 of 58
Match the change types below with their descriptions. 1. Override 2. Nullify A. Append existing code with new parameters B. Change a parameter back to its default value
3. Addition
Review
Page 49 of 58
Summary
Page 50 of 58
UNIT
Topics:
Analyzing Procedures Changing EXEC parameters Override Statements Nullification Statements Addition Statements Sequencing Multiple Changes
Page 51 of 58
Introduction
Page 52 of 58
Concepts
Page 53 of 58
Concepts
Page 54 of 58
The JCL statements on the right show how to combine these alterations on the EXEC statement that invokes the procedure.
Concepts
Page 55 of 58
For the invocation of MYPROC, assume you want to make the following changes: a. Revert to the installation-defined CPU time limit for PROGB. b. Restrict the amount of time PROGA can use the CPU to 2 minutes. c. Add a PARM value of 5/10/99 to PROGA. Put the following items in the correct sequence, following the sequencing rules for multiple changes to produce EXEC statement parameters. A. //
PARM.PSTEP=5/10/99 TIME.PSTEP1=2
B. //
Review
Page 56 of 58
Summary
Page 57 of 58
Summary
Page 58 of 58