How to run only 2 steps out of 100 steps???
Moderator: Moderator Group
Hi ,
Out of 100 steps if you want to run only 3 and 4 step ?? the best solution is
use of COND paramater in step.
//step3 exec pgm = xyz , Cond = (0,LE,Step2)
---
---
//step4 exec pgm = abc , Cond = (0,lE,STEP2)
Note : Cond parameter ;;if the condition is true it will bypass the step.and if the condition is false it will execute.Above steps compare with prior steps (0,le,step2) is false condition and will execute Step 3 and step4
Out of 100 steps if you want to run only 3 and 4 step ?? the best solution is
use of COND paramater in step.
//step3 exec pgm = xyz , Cond = (0,LE,Step2)
---
---
//step4 exec pgm = abc , Cond = (0,lE,STEP2)
Note : Cond parameter ;;if the condition is true it will bypass the step.and if the condition is false it will execute.Above steps compare with prior steps (0,le,step2) is false condition and will execute Step 3 and step4
syed wasim
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
-
- Member
- Posts: 8
- Joined: Wed Jan 25, 2012 6:55 pm
-
- Member
- Posts: 8
- Joined: Wed Jan 25, 2012 6:55 pm
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
-
- Member
- Posts: 25
- Joined: Sun Feb 05, 2012 10:59 pm
- Location: Bangalore
//step3 exec pgm = xyz , Cond = (0,LE,Step2)syedwasim wrote:Hi ,
Out of 100 steps if you want to run only 3 and 4 step ?? the best solution is
use of COND paramater in step.
//step3 exec pgm = xyz , Cond = (0,LE,Step2)
---
---
//step4 exec pgm = abc , Cond = (0,lE,STEP2)
Note : Cond parameter ;;if the condition is true it will bypass the step.and if the condition is false it will execute.Above steps compare with prior steps (0,le,step2) is false condition and will execute Step 3 and step4
will it check 0 <= step2.RC or step2.RC <= 0 ?
i believe it check 0 <= step2.RC which means it always true so this ste3 never excutes.
Re: with out modifications..
Good answervrnr11 wrote:Just use labels...
.A and .B before the two steps you need to run and sub .a .b and only those two steps will run..
so no modifications required..
Thanks and Regards
Shivankoo Sharma
//EMPIRE EXEC PGM=WIFE
//SYSIN DD DSN=VARSHA.ME.HOME,DISP=SHR
//SYSOUT DD DUMMY
Shivankoo Sharma
//EMPIRE EXEC PGM=WIFE
//SYSIN DD DSN=VARSHA.ME.HOME,DISP=SHR
//SYSOUT DD DUMMY
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
-
- Member
- Posts: 3
- Joined: Tue Nov 27, 2012 3:11 pm
-
- Member
- Posts: 3
- Joined: Tue Nov 27, 2012 3:11 pm
actually what he asking is he need to execute only step-3 & 4 then if we coded as your way then what about step-1 & step-2 . I think those both steps are also executed right ......
syedwasim wrote:Hi ,
Out of 100 steps if you want to run only 3 and 4 step ?? the best solution is
use of COND paramater in step.
//step3 exec pgm = xyz , Cond = (0,LE,Step2)
---
---
//step4 exec pgm = abc , Cond = (0,lE,STEP2)
Note : Cond parameter ;;if the condition is true it will bypass the step.and if the condition is false it will execute.Above steps compare with prior steps (0,le,step2) is false condition and will execute Step 3 and step4
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page