I have four steps in jcl they are STEP1,STEP2,STEP3 and STEP4.
Can it possible to run the reverse order like step4 first
then step3,step2,step1?
Answer Posted / muttaiah
JCL processes steps sequentially i mean to say we have ways
to skip steps but we don't have a way to run steps in
reverse or random way. EX; i have a job with steps 1, 2, 3.
Executing steps 3, 1, 2 is not at all possible.
If you want to do so then you have to write a new JCL with
IEBEDIT utility. Here is the JCL.
//JOBCARD AS PER INSTALLATION
//STEP1 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=FILE1,DISP=SHR
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSIN DD *
TYPE=INCLUDE,STEPS=(STEP4,STEP3,STEP2,STEP1)
/*
//
Here file1 can either be PDS/PS that holds the actual JCL.
Type=Include will copy the steps specified in the sequence
as per STEPS parm
In real time there won't be any scenario as such..If any
interviewer asks this question then blast him with this
answer. Tell him not to waste your time by such questions
| Is This Answer Correct ? | 44 Yes | 2 No |
Post New Answer View All Answers
How to override loadlib?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
What do you understand by the terms: joblib and steplib?
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
Explain how can the submitting users racf authority be overridden in a job stream?
How do you create a temporary dataset?
what are the types of abends that occur on job failure? And explain the possible causes of these
What do we mean by 'Virtual storage' for a dataset and for a JOBSTEP ? What is the significance of the following statement for a programmer 'Virtual storage results in program addresses being independent of the addresses that actually exist in a computer' ?
what is use of dsn parameter in dd statement?
Explain about LMFREE�free data set from its association with data ID
have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file
Which dd parameters are required?
How does jcl specify the job to the operating system?
how to compare two datasets without using superce because output is limited to 133 bytes
What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?