View previous topic :: View next topic
|
Author |
Message |
vinothsubramanian
New User
Joined: 01 Sep 2006 Posts: 39 Location: Chennai, India
|
|
|
|
HI,
I have to override a DD statement based on the RC of previous step STEP1. If RC of Step 1 is 0 then the (0) version of the GDG needs to be used and if RC of step 1 is 1 then the (+1) version of the GDG needs to be used.
Regards,
Ram. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Look at two identical steps controlled by IF/THEn/ELSE one using the 0 and one the +1.
IBM Manuals at the top of the page - JCL reference, and there you go. |
|
Back to top |
|
|
sudhakarreddy.ibm Warnings : 1 New User
Joined: 20 Apr 2009 Posts: 15 Location: chennai
|
|
|
|
HI,
Assume PROC1 having many steps among them STEP1 is one step name .STEP1 having many DD statements.If we want to override DD statement of STEP1. we follow below mention procedure.............
//JOBCARD
//STEP1 EXEC PGM=PRG1
//DD1 DD DSN = A.B.C
//STEP2 EXEC PGM =PROC1, COND=(0,<>,STEP1)
//PROC1.STEP1.DD1 DD DSN='GDG(0)
//STEP3 DD PGM=PROC1,COND=(1,EQ,STEP1)
// PROC1.STEP1.DD1 DD DSN='GDG(1)'
//
Please correct me if i am wrong...............
sudha.............. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
You are WRONG
Have you actually tested that code ?
PGM= PROC1
3 level overrides
<> in condition checking
'GDG(1)' (1) what - would that be a + or perhaps a -
Do you have access to a JCL manual - if so - start reading it NOW |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
At the top of the page is a link to "IBM Manuals".
Among them are the JCL documentation. |
|
Back to top |
|
|
|