length of double dimension arrey in REXX

IBM's Command List programming language & Restructured Extended Executor
deveshyahoo
Posts: 1
Joined: Mon Jan 28, 2008 4:20 pm
Skillset: COBOL, REXX, JCL, CICS, DB2, IMS
Referer: GOOGLE

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.

User avatar
MrSpock
Global moderator
Posts: 809
Joined: Wed Jun 06, 2007 9:37 pm
Skillset: REXX, JCL, DFSORT, Syncsort, Axway MFT, Connect:Direct, FTP, SFTP
Referer: ibmmainframes.com
Location: Raleigh NC USA
Contact:

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.


  • Similar Topics
    Replies
    Views
    Last post