MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

COND CODE Syntax and Function Clarification

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
pkarthik@email.com
Beginner


Joined: 29 Mar 2005
Posts: 34
Topics: 18
Location: Canada

PostPosted: Tue Mar 29, 2005 12:40 pm    Post subject: COND CODE Syntax and Function Clarification Reply with quote

A small Clarification
Condition Statements Synatax is
cond=(code,operator,stepname)
Did cond can be given as COND=(stepname,operator,code) Plz Help Me
I am given a explaination

//step2 exec PGM=program,COND=(0,NE,STEP1)

WHERE STEP1'S RETURN CODE=0 COND=FALSE HENCE STEP2 WILL EXECUTE

//step2 exec PGM=program,COND=(STEP1,NE,0) THE EXPLAINATION GIVEN IS STEP2 WILL NOT EXECUTE WHICH MEANS WHAT MAY BE THE REASON.
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Mar 29, 2005 1:00 pm    Post subject: Reply with quote

Quote:

//step2 exec PGM=program,COND=(STEP1,NE,0) THE EXPLAINATION GIVEN IS STEP2 WILL NOT EXECUTE WHICH MEANS WHAT MAY BE THE REASON.


pkarthik,

COND=(STEP1,NE,0) is not a valid syntax. The job will fail with a JCL error. The correct syntax is (Code,operator,stepname).

Check this link which explains in detail about the COND code processing.

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B631/16.5.7?SHELF=&DT=20030423085347&CASE=

Hope this helps...

Cheers

Kolusu

Ps: I am moving this topic to the JCL forum.
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group