My apologies,sorry for the confusion  -The original posting was incorrect -I do 
issue   ADDRESS ISPEXEC 
 "EDIT DATASET('" || WORKDSN || "(" || TEMPRUN || ")') 
   MACRO(XCHGRUN) PARM(TEMPRUN)"  .Yes I am still in edit mode - and I want to 
determine if SUBMIT, END, CANCEL, or a PF key was entered ...I should be able 
to determine what action the user performed/entered in Rexx..paul

---------- Original Message ----------
From: "Schmitt, Michael"              
<[email protected]>
To: [email protected]
Subject: Re: Test for command after Rexx ISREDIT
Date: Mon, 4 May 2026 14:42:34 +0000

What do you mean by "When the Edit session is returned to the user"?

If you mean when the Edit session ends and the user is back in ISPF, the last 
action had to be something that ends Edit. And that sets a return code.


If you mean when the macro is over, then how can you detect anything? You're 
not in a macro anymore.

-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
[email protected]
Sent: Sunday, May 3, 2026 2:00 PM
To: [email protected]
Subject: Test for command after Rexx ISREDIT

I'm not well versed in Rexx -.I do have a simple rexx routine which calls 
another routine to issue a macro as follows:.
address ISREDIT
 "macro (PDSMEM) NOPROCESS"
 "CHANGE '@@@class' '"drgclass"'"
 "CHANGE '@@@packg' '"drgpackg"'"
 "CHANGE '@@@envt' '"lenvt"'"
.
address ISPEXEC "ISREDIT SAVE "t.I have no issues with the above code snipet 
-It works very well as expected -.When the Edit session is returned to the 
user, I would like to detect the last function the user performed on that 
screen -The user could have entered SUBMIT, CANCEL, simply depressed the enter 
key, or decided to end with PF3 -How can i easily and safely determined what 
the user last performed ?..paul

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to