Академический Документы
Профессиональный Документы
Культура Документы
UNIT
Page 2 of 58
Introduction
Page 3 of 58
Introduction
Page 4 of 58
UNIT
Page 5 of 58
Topic Objectives
At the end of this topic, you will be able to:
Introduction
Page 6 of 58
Concepts
Page 7 of 58
Continued
Concepts
Page 8 of 58
Continued
Concepts
Page 9 of 58
Continued
Concepts
Page 10 of 58
Concepts
Page 11 of 58
Are We on Track?
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
Analysis Explanation
The listing for the procedure TRANSACT
indicates the following:
The procedure executes 2 programs: PROG1 and
PROG2.
PROG1 uses the following data sets:
Continued
Concepts
Page 13 of 58
Continued
Concepts
Page 14 of 58
Concepts
Page 15 of 58
Are We on Track?
Review
Page 16 of 58
Are We on Track?
Review
Page 17 of 58
Glossary
Cataloged data set
A non-temporary data set for which the system has recorded the unit
and volume on which the data set resides.
SYSOUT
A keyword that defines a print data set. It instructs the system to queue
the output on a direct-access volume.
A data set which stores data needed only for the duration of the job.
Glossary
Page 18 of 58
Topic Summary
Now that you have completed this topic, you should be able to:
Summary
Page 19 of 58
UNIT
Page 20 of 58
Topic Objectives
At the end of this topic, you will be able to:
Introduction
Page 21 of 58
Coding Changes
A procedure listing helps a programmer to analyze
the procedure for its usability. In some cases a
procedure might satisfy all the basic requirements
for usability, but might need some minor
alterations.
This can be done by changing the EXEC and DD
parameters when the procedure is invoked.
However, these alterations are applicable only for
one invocation. They do not permanently modify
the procedure definition.
Continued
Concepts
Page 22 of 58
Concepts
//STEP1 EXEC
//DD1
DD
parameter
//DD2
DD
parameter
Override
Nullify
procedure name,parameter
Add
New DD
Statement
Page 23 of 58
//JSTEP EXEC
//
procedurename,
parameter.procstepname=value
Give the name of the EXEC statement parameter to be overridden, nullified or added, followed by a
period.
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.
Page 24 of 58
Are We on Track?
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.
C. Changes apply once only to the current invocation.
D. Changes apply to all future invocations of the procedure.
Review
Review
Page 25 of 58
Are We on Track?
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
C. Override the PGM parameter on procedure EXEC
Review
Page 26 of 58
Topic Summary
Now that you have completed this topic, you should be able to:
Summary
Introduction
Page 27 of 58
UNIT
Page 28 of 58
Topic Objectives
At the end of this topic, you will be able to:
Introduction
Page 29 of 58
//PSTEP1
//DD1
//DD2
//DD3
//DD4
//
//
//
//PSTEP2
//DD5
//
//DD6
EXEC
DD
DD
DD
DD
EXEC
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)
DD SYSOUT=A
Continued
Concepts
Page 30 of 58
Concepts
//PSTEP1
//DD1
//DD2
//DD3
//DD4
//
//
//
//PSTEP2
//DD5
//
//DD6
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
Page 31 of 58
Are We on Track?
//PSTEP1
//DD1
//DD2
//PSTEP2
//DD3
EXEC
DD
DD
EXEC
DD
PGM=PROGA,TIME=(3,30)
DSN=A,DISP=SHR
...
PGM=PGMB,TIME=5
...
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
Topic Summary
Now that you have completed this topic, you should be able to:
Summary
Introduction
Page 33 of 58
UNIT
Page 34 of 58
Topic Objectives
At the end of this topic, you will be able to:
Introduction
Page 35 of 58
Continued
Copyright IBM Corp., 2000, 2004. All rights reserved.
Page 36 of 58
Concepts
Page 37 of 58
//PSTEP1
//DD1
//DD2
//DD3
//DD4
//
//
//
//PSTEP2
//DD5
//
//DD6
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
Page 38 of 58
Concepts
//PSTEP1
//DD1
//DD2
//DD3
//DD4
//
//
//
//PSTEP2
//DD5
//
//DD6
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
Page 39 of 58
Are We on Track?
//PSTEP1
//DD1
//PSTEP2
//DD2
EXEC
DD
EXEC
DD
PGM=PGMA
...
PGM=PGMB,TIME=5
...
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
Review
EXEC __________
Page 40 of 58
Topic Summary
Now that you have completed this topic, you should be able to:
Summary
Page 41 of 58
UNIT
Page 42 of 58
Topic Objectives
At the end of this topic, you will be able to:
Introduction
Page 43 of 58
Continued
Concepts
Page 44 of 58
Note the following points when sequencing multiple EXEC statement additions:
A comma separates the name of the procedure from the first parameter addition, and the
parameter additions from each other.
Continued
Concepts
Page 45 of 58
//PSTEP1
//DD1
//DD2
//DD3
//DD4
//
//
//
//PSTEP2
//DD5
//
//DD6
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
Page 46 of 58
Concepts
//PSTEP1
//
//DD1
//DD2
//DD3
//DD4
//
//
//
//PSTEP2
//
//DD5
//
//DD6
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
Page 47 of 58
Are We on Track?
//PSTEP1
//DD1
//PSTEP2
EXEC PGM=PGMA,TIME=(1,30)
DD
...
EXEC PGMB,TIME=5
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
Are We on Track?
Review
1. Override
2. Nullify
3. Addition
Page 49 of 58
Topic Summary
Now that you have completed this topic, you should be able to:
Summary
Page 50 of 58
UNIT
Page 51 of 58
Topic Objectives
At the end of this topic, you will be able to:
Introduction
Page 52 of 58
Combining Changes
It is possible to use EXEC statement overrides, nullifications, and additions for one or more procedure
steps
at the same time. This can be done by combining the changes on the EXEC statement that invokes the
procedure.
For example, the programmer can change the time restrictions and can also supply the current date for a
particular PSTEP.
Concepts
Page 53 of 58
Concepts
Specify alterations in procedure step sequence. The alterations for one step must be specified
before the alterations for a subsequent step.
Page 54 of 58
Concepts
Page 55 of 58
Are We on Track?
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
B. //
TIME.PSTEP1=2
Review
TIME.PSTEP2=
Page 56 of 58
Topic Summary
Now that you have completed this topic, you should be able to:
Summary
Page 57 of 58
Summary
Page 58 of 58