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
What is the function of the dd avgrec keyword in sms datasets?
What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?
What is the significance of addrspc parameter in the exec statement?
what is the use of JCL?
What statement can be used to send data to another mvs jes3 node?
I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.
Differentiate between addressing mode and run mode.
what is use of dsn parameter in dd statement?
Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?
Explain the hierarchy levels in jcl?
what is JCL?
I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?
What do you know about jcl?
How would you understand error(execution phase)?
Explain how can the submitting users racf authority be overridden in a job stream?