Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How pass Edit Macro return code to calling REXX exec?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
autobox

New User


Joined: 19 Aug 2005
Posts: 48

PostPosted: Sat Apr 30, 2011 1:42 pm    Post subject: How pass Edit Macro return code to calling REXX exec?
Reply with quote

Hi all,

In REXX exec, DS/member is edited by an Edit Macro via ISPF EDIT service, if during the edit RC is not 0, how to pass RC back to REXX exec?

Thanks in advance!
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Sat Apr 30, 2011 2:03 pm    Post subject: Reply to: How pass Edit Macro return code to calling REXX ex
Reply with quote

after each call to an ispf service the RC variable contains the service return code

see the manual or the model for the return codes issued by each service

for example after an Addres ISPEXEC EDIT ....
a 0 return code means that the object of the edit was saved
a non 0 return code means that the object of the edit was not

but if You want too percolate some inner return code from the ISREDIT services You must store the RC into a different varialee an use VPUT/VGET
Back to top
View user's profile Send private message
autobox

New User


Joined: 19 Aug 2005
Posts: 48

PostPosted: Sat Apr 30, 2011 2:15 pm    Post subject:
Reply with quote

From my understanding, the RC is the completion status of that ISPF service. For example if the DS/member is edited successfully by the ISPF EDIT service via an edit macro, the RC should be 0. During the successful edit, if I want to pass a RC from the edit macro back to the REXX, will that RC work?

I know one solustion is to use ISPF variable, is there any other way to do so?

Thanks.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Sat Apr 30, 2011 2:18 pm    Post subject: Reply to: How pass Edit Macro return code to calling REXX ex
Reply with quote

You just repeated my <explanation>
what is that You are looking for icon_eek.gif
Back to top
View user's profile Send private message
autobox

New User


Joined: 19 Aug 2005
Posts: 48

PostPosted: Sat Apr 30, 2011 2:35 pm    Post subject:
Reply with quote

Thanks enrico-sorichetti.

I want to know if the RC can be passed back by any other way, except using ISPF variable.

Thanks again.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Sat Apr 30, 2011 2:39 pm    Post subject: Reply to: How pass Edit Macro return code to calling REXX ex
Reply with quote

if it was possible I would have told so in my first reply icon_cool.gif
Back to top
View user's profile Send private message
autobox

New User


Joined: 19 Aug 2005
Posts: 48

PostPosted: Sat Apr 30, 2011 2:44 pm    Post subject:
Reply with quote

Thanks enrico-sorichetti for your help! icon_lol.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us