Correct - I am so used to do parse value with that for source my fingers just typed with.
Lionel B. Dyck <>< Website: https://www.lbdsoftware.com Github: https://github.com/lbdyck “Worry more about your character than your reputation. Character is what you are, reputation merely what others think you are.” - - - John Wooden -----Original Message----- From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of Paul Gilmartin Sent: Thursday, January 27, 2022 12:54 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Tracking CLIST/Exec Usage On Thu, 27 Jan 2022 11:43:34 -0600, Lionel B. Dyck wrote: >I wrote a quick test - hope it helps: > >Test One: > >T1: >/* rexx */ >parse source with src >say 'src:' src >'%t2' > The "with" is probably misplaced. It assigns the system name ("TSO") to the variable "with". <https://www.ibm.com/docs/en/zos/2.5.0?topic=instructions-parse> >T2: >/* rexx */ >parse source with src >say 't2 src:' src >'%t3' > >T3: >/* rexx */ >parse source with src >say 't3 src:' src > >The results when executing T1: > >src: COMMAND T1 SYSEXEC ? ? TSO ISPF ? >t2 src: COMMAND T2 SYSEXEC ? ? TSO ISPF ? >t3 src: COMMAND T3 SYSEXEC ? ? TSO ISPF ? > > >Test 2: > >T1: >/* rexx */ >parse source with src >say 'src:' src >x = t2() > >T2: >/* rexx */ >parse source with src >say 't2 src:' src >x = t3() >return 0 > >T3: >/* rexx */ >parse source with src >say 't3 src:' src >return 0 > >Results: > >src: COMMAND T1 SYSEXEC ? ? TSO ISPF ? >t2 src: FUNCTION T2 SYSEXEC ? ? TSO ISPF ? >t3 src: FUNCTION T3 SYSEXEC ? ? TSO ISPF ? -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN