Hi,
Rexx is driving me crazy...
I'd like to call a function (procedure, whatever) and have it populate a stem with data, then return that stem.
I'm using TSO/Rexx on z/OS 1.4, and I wrote a sample program to test it and figure out how to get it working before trying to do it in my real script.
When I run it, it just prints:
arr[0]:
arr[1]:
arr[2]:
Is it possible to do what I'm trying to do in Rexx?
Rexx is driving me crazy...
I'd like to call a function (procedure, whatever) and have it populate a stem with data, then return that stem.
I'm using TSO/Rexx on z/OS 1.4, and I wrote a sample program to test it and figure out how to get it working before trying to do it in my real script.
Code:
ADDRESS TSO
SIGNAL ON NOVALUE
arr. = ""
arr. = TestArray()
SAY "arr[0]:" arr.0
SAY "arr[1]:" arr.1
SAY "arr[2]:" arr.2
EXIT 0
TestArray: PROCEDURE
array. = ""
array.0 = 2
array.1 = "Hello"
array.2 = "World"
RETURN array.
arr[0]:
arr[1]:
arr[2]:
Is it possible to do what I'm trying to do in Rexx?