On Thu, 20 Apr 2017 07:55:30 -0500, Elardus Engelbrecht wrote: > >>I was afraid of that. How about a wrapper macro: >Interesting. Thanks, I believe it could be really useful to the OP. > Thanks. (But I was wrong the first time.) > >> address ISREDIT /* Why isn't this the default for Macros!? */ > >Good question. > >ADDRESS is used to send commands to a specific environment like ISREDIT for >example. >AFAIK, REXX interpreter does not know _where_ the program _should be_ running. > EDIT/VIEW need only tell it. The interface exists:
z/OS IBM TSO/E REXX Reference Version 2 Release 2 SA32-0972-02 The exec block (EXECBLK) is a control block that describes the exec to be loaded. ... TSO/E provides a mapping macro IRXEXECB for the exec block. The mapping macro is in SYS1.MACLIB. Table 18 describes the format of the exec block. ... Field name ... SUBCOM Specifies the name of the initial host command environment when the exec starts running. (I got the idea from the operation of CMS XEDIT which starts macros with XEDIT as the host environment. It seems the ISPF developers at the start of TSO/E r2 had only a poor understanding of Rexx tradition. Who else the idiosyncratic ADDRESS ISREDIT 'MACRO (X)' rather than the conventional PARSE ARG X?) -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
