I'm trying to get an Edit Macro to accept ARG...Edit Macro is manually entered by user from within an active REXX.
Rexx invokes ISPEXEC View session of a PDS member
User enters Edit Macro "GENCHK x" (where x = a line # within the PDS member)
Edit Macro doesn't accept ARG 'x'
/* REXX */
ADDRESS ISREDIT
"MACRO"
ARG RSTRSTEP
SAY RSTRSTEP
EXIT
(EXIT added just for testing ARG)...RSTRSTEP is blanks
Address Isredit "MACRO NOPROCESS (P)"
if rc=0 then exit EditMac(p)
/* regular pgm starts */
arg name,opts
. . .
exit 0
/* edit macro section */
EditMac:
Address Isredit
parse upper var p what .
. . .
exit 0