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 

Help in return code from PROC

 
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
karunkallore
Beginner


Joined: 11 Dec 2004
Posts: 103
Topics: 39

PostPosted: Mon Feb 14, 2005 10:25 pm    Post subject: Help in return code from PROC Reply with quote

Dear Friends,


Please help me in the following case.

I have a JCL of this Format :-

Step1 Exec PGM=A

Step2 EXEC PROC1,AA=4,BB=5,COND=(0,GT,STEP1)

Step3 Exec PGM=A


Here in Step3 I need to check the Return code from Step2 which is a PROC. I need to check like this :-

Step3 Exec PGM=A,COND=(0,GT,Step3)

I cannot use a If/Else/EndIF.

Is there any way to check the retuen code from the Step In proc. My this PROC1 has only One Step.

Please help.

Thanks,
Karun
Back to top
View user's profile Send private message Send e-mail
dtf
Beginner


Joined: 10 Dec 2004
Posts: 110
Topics: 8
Location: Colorado USA

PostPosted: Mon Feb 14, 2005 10:58 pm    Post subject: Reply with quote

Very strange questions you are asking........ Yes this can be done (if I understand what you are asking)

I believe as a hint I would say that your COND statement would reference both the STEP NAME and the PROC STEP NAME.

I would also note that COND code checking is probably the LEAST straight forward parameters in the JCL language. This is perhaps why the IF/ELSE/ENDIF was introduced/
________
Mazda Premacy and Mazda5


Last edited by dtf on Tue Feb 01, 2011 1:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Tue Feb 15, 2005 10:28 am    Post subject: Reply with quote

karunkallore,

You can check the return code of the proc , but you need to specify the exact stepname of the proc.

Check this link for a detailed explanation of the cond parameter with examples.

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B631/16.5?DT=20030423085347

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
karunkallore
Beginner


Joined: 11 Dec 2004
Posts: 103
Topics: 39

PostPosted: Tue Feb 15, 2005 10:34 am    Post subject: Thanks, Reply with quote

Hi Kolsu,

Thanks for the tip.


Karun
Back to top
View user's profile Send private message Send e-mail
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