length of double dimension arrey in REXX

IBM's Command List programming language & Restructured Extended Executor

length of double dimension arrey in REXX

Postby deveshyahoo » Mon Jan 28, 2008 4:24 pm

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.
Posts: 1
Joined: Mon Jan 28, 2008 4:20 pm
Has thanked: 0 time
Been thanked: 0 time

Re: length of double dimension arrey in REXX


Re: length of double dimension arrey in REXX

Postby MrSpock » Mon Jan 28, 2008 9:00 pm

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.
User avatar
Global moderator
Posts: 811
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 2 times

Return to CLIST & REXX


  • Related topics
    Last post