View previous topic :: View next topic
|
Author |
Message |
autobox
New User
Joined: 19 Aug 2005 Posts: 51
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
|
autobox
New User
Joined: 19 Aug 2005 Posts: 51
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
You just repeated my <explanation>
what is that You are looking for |
|
Back to top |
|
|
autobox
New User
Joined: 19 Aug 2005 Posts: 51
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
if it was possible I would have told so in my first reply |
|
Back to top |
|
|
autobox
New User
Joined: 19 Aug 2005 Posts: 51
|
|
|
|
Thanks enrico-sorichetti for your help! |
|
Back to top |
|
|
|