Page 1 of 1

length of double dimension arrey in REXX

PostPosted: Mon Jan 28, 2008 4:24 pm
by deveshyahoo
Hi all
I am facing a problem while using REXX.
I have a double dimension array "Record.x.y".
x can take values from 1 to 5 as per need
y can take any positive value based on the type of records (type x--> 1,2,3,..)

I need to know the no. of entries in an double dimension array. I can get the no. of records in single dimension array using REC.0 but i am not able to do the same for double dimension array Record.x.y.

If I do " Say Record.x.0" it simply prints it as it is and not the no. of records.

I tried:

Temporary. = Record.x.
Say Temporary.0

But the attempt proved to be futile.
Please help me with this problem.

Re: length of double dimension arrey in REXX

PostPosted: Mon Jan 28, 2008 9:00 pm
by MrSpock
I've read your post a couple of times, and then read whatever I could find regarding REXX stem variables. As far as I know, and can tell at this point, there is no built-in function that REXX uses to track the number of occurences of a stem variable. As far as I know, this function is, and always has been, up to the programmer to handle.