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 [email protected] with the message: INFO IBM-MAIN