I've found returning from a procedure a string with a set of assignments 
separated by semicolons quite useful. I guess you're doing something 
similar.

(My canonical example is a sorted array returned as a sequence of 
assignments to the new array.

Cheers, Martin

Martin Packer

zChampion, Systems Investigator & Performance Troubleshooter, IBM

+44-7802-245-584

email: [email protected]

Twitter / Facebook IDs: MartinPacker

Blog: https://mainframeperformancetopics.com

Podcast Series (With Marna Walle): https://developer.ibm.com/tv/mpt/    or 
  
https://itunes.apple.com/gb/podcast/mainframe-performance-topics/id1127943573?mt=2


Youtube channel: https://www.youtube.com/channel/UCu_65HaYgksbF6Q8SQ4oOvA



From:   Lionel B Dyck <[email protected]>
To:     [email protected]
Date:   30/05/2020 12:22
Subject:        [EXTERNAL] Re: REXX Interpret Question - weekend 'fun'
Sent by:        IBM Mainframe Discussion List <[email protected]>



Thank you both for your help - I'm now moving forward with my code.

Once again I've learned something (so it is a good day)


Lionel B. Dyck <sdg><
Website: 
https://urldefense.proofpoint.com/v2/url?u=https-3A__www.lbdsoftware.com&d=DwIFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=BsPGKdq7-Vl8MW2-WOWZjlZ0NwmcFSpQCLphNznBSDQ&m=31VYEejEa9tATNQFyYoL3k3LsRBFuOhblcDTgdp97pg&s=QQDB0WzThcxUzJnCD5-4cTDQvJi9C6hjOL2J32yWyC0&e=
 


"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 <[email protected]> On Behalf 
Of ITschak Mugzach
Sent: Saturday, May 30, 2020 6:21 AM
To: [email protected]
Subject: Re: REXX Interpret Question - weekend 'fun'

Lionel,

you can achieve that with VLUE as well. I think the problem with your 
example is that the getting variable was not interpreted. I use this
syntax:
xArray  = My_Array
Index   = 4
LineNum = 8
/* OutVar.LineNum <== a previously set stem variable */ Interpret 
xArray'jCx = OutVar.LineNum'


ITschak Mugzach
*|** IronSphere Platform* *|* *Information Security Continuous Monitoring 
for z/OS, x/Linux & IBM I **| z/VM comming son  *




On Sat, May 30, 2020 at 1:44 PM Lionel B Dyck <[email protected]> wrote:

> So this works - can anyone help with the 2nd?
>
>
>
> /* rexx */
>
> v.1 = 'abc';v.2 = 'def'
>
> interpret 'var = v'.1
>
> interpret 'var2 = v'.2
>
> say var var2
>
>
>
> But this doesn't:
>
>
>
> /* rexx */
>
> test = 'testx'
>
> interpret 'test'.1 '= var'
>
> say testx.1
>
>
>
>
>
> Lionel B. Dyck <sdg><
> Website:  <
https://urldefense.proofpoint.com/v2/url?u=https-3A__www.lbdsoftware.com&d=DwIFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=BsPGKdq7-Vl8MW2-WOWZjlZ0NwmcFSpQCLphNznBSDQ&m=31VYEejEa9tATNQFyYoL3k3LsRBFuOhblcDTgdp97pg&s=QQDB0WzThcxUzJnCD5-4cTDQvJi9C6hjOL2J32yWyC0&e=
 
> 
https://urldefense.proofpoint.com/v2/url?u=https-3A__www.lbdsoftware.com&d=DwIFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=BsPGKdq7-Vl8MW2-WOWZjlZ0NwmcFSpQCLphNznBSDQ&m=31VYEejEa9tATNQFyYoL3k3LsRBFuOhblcDTgdp97pg&s=QQDB0WzThcxUzJnCD5-4cTDQvJi9C6hjOL2J32yWyC0&e=
 

>
> "Worry more about your character than your reputation.  Character is 
> what you are, reputation merely what others think you are." - John 
> Wooden
>
>
>
>
> ----------------------------------------------------------------------
> 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

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN




Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to