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 

Return Code in a JCL

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


Joined: 29 Jun 2006
Posts: 22
Topics: 19

PostPosted: Wed Sep 12, 2007 3:44 am    Post subject: Return Code in a JCL Reply with quote

Hello

I would set manually gladly into my JCL a return code.

Example:

//TEST EXEC PGM=ABC
//SET RC = 0

Thus the return code of the PGM ABC should be set to 0
Question: this is possible - it exisitert so a COMMAND

Thank you

Zefrim
Back to top
View user's profile Send private message
vivek1983
Intermediate


Joined: 20 Apr 2006
Posts: 222
Topics: 24

PostPosted: Wed Sep 12, 2007 4:32 am    Post subject: Reply with quote

zefrim,

My suggestion:

Code:

 
  //TEST EXEC PGM=ABC
  .....
//GA8D2606 EXEC  PGM=IDCAMS                                 
//*                                                                                         
//SYSOUT   DD  SYSOUT=*                                     
//SYSPRINT DD  SYSOUT=*                                     
//SYSUDUMP DD  SYSOUT=T                                     
//*                                                         
//SYSIN    DD  *
     SET MAXCC = 0
/*



Hope this helps.

Vivek G
Back to top
View user's profile Send private message
blitz2
Beginner


Joined: 23 Jan 2007
Posts: 84
Topics: 14

PostPosted: Wed Sep 12, 2007 6:16 am    Post subject: Reply with quote

zefrim,

This has been discussed before. Please refer
http://mvsforums.com/helpboards/viewtopic.php?t=1133
________
ACURA CSX HISTORY


Last edited by blitz2 on Thu Mar 10, 2011 5:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Wed Sep 12, 2007 7:46 am    Post subject: Reply with quote

zefrim,

Also be aware that the RC=0 is for that STEP only. You can not reset what the system knows is the MAXCC for the job.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Wed Sep 12, 2007 11:40 am    Post subject: Reply with quote

Bill is, of course, right. Which means that if you want a step that returns RC=0, IEFBR14 would do.
Back to top
View user's profile Send private message 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