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 How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts PL/I code tuning/Performance improvement Virendra Shambharkar PL/I & Assembler 4 Mon Dec 05, 2016 11:57 am
No new posts What is the code in CLIST to enable t... jackzhang75 CLIST & REXX 1 Fri Dec 02, 2016 3:02 am
No new posts IDEAL - Code Retrieval yugendran CA Products 0 Fri Nov 25, 2016 3:27 pm


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