condition codes
Moderators: Frank Yaeger, DikDude, Moderator Group
condition codes
Condition codes Refer :
http://www.mainframegurukul.com/srcsinc ... pter5.html
----------- Above added by Krishna
Hi,
There are 3 steps in my JCL
say
step1
step2
step3
what condition code should I use in step 3 to cater following requirements:
1. if step1 abends step3 should not execute
2. if step1 executes properly and step2 abends then step3 should execute.
3. if step1 and step2 both executes properly then step3 should also execute.
plz reply me asap
thanks
http://www.mainframegurukul.com/srcsinc ... pter5.html
----------- Above added by Krishna
Hi,
There are 3 steps in my JCL
say
step1
step2
step3
what condition code should I use in step 3 to cater following requirements:
1. if step1 abends step3 should not execute
2. if step1 executes properly and step2 abends then step3 should execute.
3. if step1 and step2 both executes properly then step3 should also execute.
plz reply me asap
thanks
- bharghava_vamsi
- Member
- Posts: 2
- Joined: Tue Mar 28, 2006 12:31 pm
Condition code
Hai,
Try this and see if this works. Inform if it doesn't.
//step1 exec....
//step2 exec...
//step3 exec pgm=...,cond=(0,NE,step1),even
The step3 will execute only if step1 is successfully executed. The step3 executes even if step2 is abended and we specify it using 'even'. Hope this answers your query.
Try this and see if this works. Inform if it doesn't.
//step1 exec....
//step2 exec...
//step3 exec pgm=...,cond=(0,NE,step1),even
The step3 will execute only if step1 is successfully executed. The step3 executes even if step2 is abended and we specify it using 'even'. Hope this answers your query.
Re: Condition code
hi
cond=(0,NE,step1),even is not working
it doesnot satisfy condition 1 ie
1. if step1 abends step3 should not execute
cond=(0,NE,step1),even is not working
it doesnot satisfy condition 1 ie
1. if step1 abends step3 should not execute
I think the 2nd and 3rd points are contradicting with each other. Because you are looking for success and unsuccess on step2.1. if step1 abends step3 should not execute
2. if step1 executes properly and step2 abends then step3 should execute.
3. if step1 and step2 both executes properly then step3 should also execute.
Arr Bee
-------------
?My joy in learning is partly that it enables me to teach? - Seneca(Roman philosopher, mid-1st century AD)
-------------
?My joy in learning is partly that it enables me to teach? - Seneca(Roman philosopher, mid-1st century AD)
condition codes
step 2 and step 3 are not contradictory........
ok let me rephrase my question:
It doesn't matters whether step2 runs or not, step3 should run if step1 had run successfully.
I hope this will create my question bit clear to u guys.
Thanks
ok let me rephrase my question:
It doesn't matters whether step2 runs or not, step3 should run if step1 had run successfully.
I hope this will create my question bit clear to u guys.
Thanks
-
- Member
- Posts: 1
- Joined: Mon May 08, 2006 3:23 pm
-
- Member
- Posts: 7
- Joined: Wed Jun 30, 2010 10:14 pm
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
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