If you want apostrophes in the command you send to ISREDIT then you need to 
either quote them or use variables that contain apostrophes, e.g.,

Macro is:
/* REXX */
   address ISREDIT
   'macro'
   CAPS OFF
   "CHANGE 'AAA' 'Aaa' ALL"
   exit

Macro is:
/* REXX */
   address ISREDIT
   a="'"
   'macro'
   CAPS OFF
   CHANGE a'AAA'a a'Aaa'a ALL
   exit


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




________________________________________
From: IBM Mainframe Discussion List <[email protected]> on behalf of 
Phil Smith III <[email protected]>
Sent: Saturday, September 20, 2025 9:49 AM
To: [email protected] <[email protected]>
Subject: Re: Edit macro CHANGE not preseriving case


External Message: Use Caution


Ah sorry.

Rexx, from within ISPF Edit.

Macro is:
/* REXX */
   address ISREDIT
   'macro'
   CAPS OFF
   CHANGE 'AAA' 'Aaa' ALL
   exit

(sometimes without the 'macro', or with TRACE ?R), invoked directly from the 
commandline via "macroname" or via "tso macroname", depending on what we're 
trying to test/prove.

z/OS 3.1 on a zPDT using Tom Brennan's Vista 3270 on a ThinkPad T14 on my desk 
in my den in Virginia on planet Earth, sunny and 68 degrees Fahrenheit, both 
inside and out.

That enough environmental information? 😊

-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
Paul Gilmartin
Sent: Friday, September 19, 2025 10:32 PM
To: [email protected]
Subject: Re: Edit macro CHANGE not preseriving case

On Fri, 19 Sep 2025 10:06:34 -0400, Phil Smith III wrote:

>I just tried it, I think:
>CAPS ON
>PROFILE LOCK
>PROFILE (shows LOCK and CAPS ON)
>Then I ran the macro: no errors and the display changed to show CAPS OFF. So 
>the lock gets overridden by the macro, interesting.
>    ...
I'm lost.  Please clarify:
Which macro language?:
    CLIST
    REXX
Which command environment?:
    TSO
    ISPEXEC
    ISREDIT

Any other possible environment queries.

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