View previous topic :: View next topic
|
Author |
Message |
kedianirmal
New User
Joined: 08 Feb 2008 Posts: 82 Location: Bangalore, India
|
|
|
|
Hi,
I want the below task to be acheived:
Code: |
//Step1 EXEC=PGM1
IF STEP1.RC = XX
//Step2
// (SET THE STEP3.DSN1=XXXXX.YYYYY.ZZZZZZ)
END-IF
//STEP3 EXEC=PGM2
//DSN1 DD DUMMY
//DSN2 DSN=AAAA.BBBB.CCCCC |
Can anybody help me if this is achievable.
Thanks
Nirmal |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Nirmal, work it out logically, and keep in mind the workflow from the JCL library through the Internal Reader and into the JES sub-system for processing.
As you know, a step must execute either a program or a procedure. So STEP2 has to do something. My suggestion is to use two different steps, based on the return-code of STEP1, which would use the proper dataset as needed:
Code: |
//STEP1 EXEC=PGM1
...
// IF STEP1.RC = nnnn THEN
//STEP2A EXEC PGM=PGM2
//DSN1 DD DSN=XXXXX.YYYYY.ZZZZZZ,DISP=...
//DSN2 DSN=AAAA.BBBB.CCCCC
...
//*
// ELSE
//STEP2B EXEC PGM=PGM2
//DSN1 DD DUMMY
//DSN2 DSN=AAAA.BBBB.CCCCC
...
// ENDIF
//*
|
|
|
Back to top |
|
|
r2k1984
New User
Joined: 21 Jun 2005 Posts: 69 Location: chennai
|
|
|
|
yes kevin statements are correct |
|
Back to top |
|
|
|