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 

How to set return code in Rexx BATCH programs?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
Premkumar
Moderator


Joined: 28 Nov 2002
Posts: 77
Topics: 7
Location: Chennai, India

PostPosted: Mon Dec 02, 2002 11:07 pm    Post subject: How to set return code in Rexx BATCH programs? Reply with quote

Code Exit statement with RC for programs without ISPF environment.

Code:

    Exit RC
   


Use the following code for programs with ISPF environment.

Code:

    zispfrc = rcode                       
    address ispexec "vput (zispfrc) shared"
   
Back to top
View user's profile Send private message Send e-mail
rajvasan
Beginner


Joined: 10 Dec 2002
Posts: 14
Topics: 4

PostPosted: Fri Jan 03, 2003 2:58 am    Post subject: Reply with quote

Prem,
I have a question. The piece of code, that you had given for the ISPF environment, what is the significance and where can it be used ?

Thanks,
Rajvasan
Back to top
View user's profile Send private message
Premkumar
Moderator


Joined: 28 Nov 2002
Posts: 77
Topics: 7
Location: Chennai, India

PostPosted: Fri Jan 03, 2003 5:27 am    Post subject: Reply with quote

Rajvasan,

When you are executing ISPF dialogs in batch, the only way you can set the return-code of the step is to set the ZISPFRC variable in shared pool.

Hope this helps.
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 -> TSO and ISPF 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