Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

JCL COND code test for return codes

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
raghav08
Currently Banned

New User


Joined: 03 Jun 2008
Posts: 94
Location: Bangalore

PostPosted: Wed Jul 28, 2010 12:49 pm    Post subject: JCL COND code test for return codes
Reply with quote

Hello,

I have following JCL statement

//TELLOP38 EXEC PGM=TELLOP,
// COND=((0,EQ,STEP38.PR),(8,EQ,STEP38.PR))

The step-TELLOP38 executes only when th RC of step-PR (in the procedure step STEP38) is other than 0 & 8 ?
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Jul 28, 2010 12:55 pm    Post subject:
Reply with quote

What happened when YOU tested it
Back to top
View user's profile Send private message
raghav08
Currently Banned

New User


Joined: 03 Jun 2008
Posts: 94
Location: Bangalore

PostPosted: Wed Jul 28, 2010 1:28 pm    Post subject: Reply to: JCL COND code test for return codes
Reply with quote

Hi,

This JCL statement is provided by our subcontractor, I do not have complete JCL.

As you said, I tested with own dummy test JCL & PROC with same COND.

RESULT -

The step-TELLOP38 executes only when th RC of step-PR (in the procedure step STEP38) is other than 0 & 8

Thanks.
Back to top
View user's profile Send private message
santy
Warnings : 1

New User


Joined: 19 Jul 2007
Posts: 22
Location: mumbai

PostPosted: Wed Sep 15, 2010 1:45 pm    Post subject: Reply to: JCL COND code test for return codes
Reply with quote

hi raghav08,

The step-TELLOP38 will be executes only with the condition given in COND parameter will get fails. means if RC of STEP38 will not be equal to '0' or '8' then COND condition is not satified and so that the step-TELLOP38 will execute.

you can use other option also.

//TELLOP38 EXEC PGM=TELLOP,
// COND=((0,EQ,STEP38.PR) OR (8,EQ,STEP38.PR))
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Sep 15, 2010 2:31 pm    Post subject:
Reply with quote

Santy

Please do not post code that DOES NOT WORK

You have been warned !!!
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts CA Workload Automation event code help vinu78 CA Products 10 Wed Mar 01, 2017 10:05 am
No new posts MAX-RC 88 and Return code 606 in DFH0... lind sh CICS 2 Tue Jan 24, 2017 1:23 pm
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 2 Thu Jan 12, 2017 12:02 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us