Actually, you can save things with CREATE and CUT. I switched to VIEW a long 
time ago and never looked back.

-- 
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
עַם יִשְׂרָאֵל חַי
נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר




________________________________________
From: IBM Mainframe Discussion List <[email protected]> on behalf of 
Jerry Whitteridge <[email protected]>
Sent: Thursday, September 4, 2025 1:17 PM
To: [email protected] <[email protected]>
Subject: Re: EXTERNAL Email: How avoid ISREDIT MACRO error in nested EDIT macro?


External Message: Use Caution


Charles - instead of using BROWSE use VIEW. Gives you all the functions of EDIT 
without being able to save the data changes


Jerry Whitteridge
Sr Manager Managed Services
Tech Operations & Innovation
[email protected]
480 578 7889

-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
Charles Mills
Sent: Thursday, September 4, 2025 10:01 AM
To: [email protected]
Subject: EXTERNAL Email: How avoid ISREDIT MACRO error in nested EDIT macro?

I have relatively little ISPF development experience. I have written a 
largely-successful EDIT macro. It opens a BROWSE window, so it is not 
impossible for a user to invoke the macro from within the BROWSE session.(It's 
illogical to do so -- it's not a "supported usage" -- but you know how users 
are!)

The EDIT macro contains     Address ISREDIT "MACRO" .

If the macro is invoked from within the macro-initiated BROWSE I get an error 
on the above statement, which is kind of ugly.

MACRO command is invalid
The MACRO command must be specified only once in a macro.
  Error message ID . : ISRE749
  Last return code . : 12

How do I avoid that? IOW, how from within the EDIT macro can I determine that 
ISREDIT "MACRO" would be superfluous or illegal? Or how do does the EDIT macro 
determine that it has been reentered? I can't do any EDIT MACRO commands 
because the MACRO environment *may* not have been started. Kind of a chicken 
and egg situation.

Charles

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
________________________________
 Warning: All e-mail sent to this address will be received by the corporate 
e-mail system, and is subject to archival and review by someone other than the 
recipient. This e-mail may contain proprietary information and is intended only 
for the use of the intended recipient(s). If the reader of this message is not 
the intended recipient(s), you are notified that you have received this message 
in error and that any review, dissemination, distribution or copying of this 
message is strictly prohibited. If you have received this message in error, 
please notify the sender immediately.
________________________________

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