IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

JCL COND code test for return codes


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Wed Jul 28, 2010 12:55 pm
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
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
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: 8797
Location: Welsh Wales

PostPosted: Wed Sep 15, 2010 2:31 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
Search our Forums:

Back to Top