Jon and PeterThanks for You help - I was able to prgress with both of your suggestions.Thank You AgainPaul ---------- Original Message ---------- From: Jon Perryman <[email protected]> To: [email protected] Subject: Re: Some Clarification using REXX Date: Tue, 29 Jul 2025 18:20:39 -0500
On Tue, 29 Jul 2025 21:34:02 GMT, [email protected] <[email protected]> wrote: >I would like to change a string of characters to the value contained in a >variable - Think of REXX as a language inside of another language called environments (e.g. using ADDRESS - ISPEXEC, ISREDIT, TSO, LINKMVS, others). Use TRACE I to see the translated lines sent to the environment. REXX variables are referenced outside quotes. Try SAY "AAA" rexxvar "bbb" versus SAY "AAA no-var BBB". Remember to set rexxvar otherwise it defaults to "rexxvar". >From My mainline Rexx code I issue a call to a local sub routine: ISPF EDIT is separate from ISPF and as such requires a separate exec member referred to as an edit macro. For example: /* REXX */ trace i address ISREDIT "MACRO" address ispexec "VGET (ZPREFIX)" "CHANGE '@@@TDSN' '"zprefix".OUTPUT.TXT'" "SUBMIT" "CANCEL NOSAVE" RETURN This edit macro can be called directly from edit to try it. To run this edit macro from your mainline: ADDRESS ISPEXEC "EDIT DATASET('" || MODLDSN || "(" || MODLMBR || ")') IMACRO(name-of-your-edit-macro)" ---------------------------------------------------------------------- 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
