On Fri, 21 Apr 2023 15:18:32 +0000, Seymour J Metz wrote: >It's simple, but, IMHO, pointless. At the beginning of the macro, you test the >current environment. If it's not ISREDIT, then call EDIT with an initial macro. > The initial command environment will be TSO in either case. You may be thinking of XEDIT which isn't as poorly designed as ISPF.
I have used ADDRESS ISREDIT MACRO ... and tested the return code. My EXEC can name itself as the initial macro. -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN