How to execute step2,step1,step3 when step1,2&3 are in order
Answers were Sorted based on User's Feedback
Answer / r
//STEP001 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=XXX.GENERAL.STUDY (TEST001), DISP=SHR
//SYSUT2 DD SYSOUT= (A,INTRDR)
//SYSIN DD *
EDIT TYPE=INCLUDE, STEPNAME=(STEP2,STEP1,STEP3)
/*
in SYSUT1, we need to mentioned the job name , which having
these 3 steps.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / maruthi
PGM=IEBEDIT
DDNAME DD DSN=(DATA SET ALONG WITH PDS MEMBER(where we write
all the steps)
SYSOUT DD (*,INTRDR)
SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=(STEP2,STEP1,STEP3)
/*
//
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / sandy
We can execute step3, 1, 2 in order by using the DPRTY.
By setting the execution priority of setplib we can achieve
this.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / nand
This cannot be achieved and cannot be run in that order.
| Is This Answer Correct ? | 0 Yes | 3 No |
Answer / narayana
// JOB1 JOB 'H557467j', 'KAVITHA', RESTART = STEP02
//STEP01 ..... COND = (0,EQ,STEP03)
//STEP02 ........ COND = (0,EQ,STEP01)
//STEP03 ....
i think it works then
else use iebedit utility.
| Is This Answer Correct ? | 0 Yes | 3 No |
Answer / kavithab
This is just a try... let me know the correct answer
// JOB1 JOB 'H557467j', 'KAVITHA', RESTART = STEP02
//STEP01 ..... COND = (0,EQ,STEP02)
//STEP02 ........
//STEP03 .... COND = (0,EQ,STEP01)
| Is This Answer Correct ? | 4 Yes | 14 No |
How to ALTER the name of a GDG ?
Is acct parameter mandatory?
What do you do if you do not want to keep all the space allocated to a dataset?
What is the purpose of dd?
can we give instream data in procedure
What is the use of DUMMY statement in the JCL? What is the use of DUMMY Utility in the JCL?
How much space OS allocates when you create a PS or PDS?
How do you pass parameters to the program as the job is being executed ?
what are the statements that are not valid to be included in an include statement?
what is the COND=EVEN ? Can anyone give me an example to explain the usage.
There is a procedure in A.B.PROCS(PROC1) (member name is PROC1) //PROCA... There is a call to a procedure PROCA from a JOB. //STEP01 EXEC PROCA ... Here "PROCA" in JOB refers to the actual PROC name or the member name of the PDS where this PROCA is stored.
what is DSN in JCL and what are the parameters to declare the DSN?