View previous topic :: View next topic |
Author |
Message |
babun Beginner
Joined: 03 Aug 2005 Posts: 19 Topics: 9 Location: bangalore
|
Posted: Mon Mar 13, 2006 5:02 am Post subject: want to execute particular steps in a job.... |
|
|
HI folks
I have some 10 steps ,but i want to exexute only 2nd step and 4 th step and 7th step,,so in this scenario what mgiht be the solution ,,is it only way like SET LASTCC=0 OR DO WE HAVE ANY OTHER ORION FOR THIS?
PLS LET ME KNOW U R VIEWS ON THIS.....
THANKS IN ADVANCE _________________ babu |
|
Back to top |
|
 |
Ravi Beginner
Joined: 27 Jun 2005 Posts: 88 Topics: 2
|
Posted: Mon Mar 13, 2006 5:14 am Post subject: |
|
|
If its a one time run or its constant, then delete the unwanted steps and run the job.
If you want to use COND parameter of IF conditions, the we need to consider the return codes of each step. Based on that we can give COND parameters.
The below code is under the assumption that STEP1, 3 will return ONLY zeros
Code: | //STEP1 EXEC PGM=IEFBR14
//INDD DD DUMMY
//*
//STEP2 EXEC PGM=IEFBR14,COND=(0,EQ)
//INDD DD DUMMY
//*
//STEP3 EXEC PGM=IEFBR14
//INDD DD DUMMY
//*
//STEP4 EXEC PGM=IEFBR14,COND=(0,EQ)
//INDD DD DUMMY |
Quote: |
is it only way like SET LASTCC=0
| Can you please explain this? How do you achive thru resetting LASTCC=0. |
|
Back to top |
|
 |
Jaya Beginner

Joined: 02 Sep 2005 Posts: 77 Topics: 10 Location: Cincinnati
|
|
Back to top |
|
 |
|
|