Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Could you give me a sample which declare a array and how to

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & ASSEMBLER
Author Message
hazard84414
Warnings : 1

New User


Joined: 20 May 2006
Posts: 4

PostPosted: Sun May 21, 2006 7:38 pm    Post subject: Could you give me a sample which declare a array and how to
Reply with quote

Hi, everyone:
Could you give me a sample which declare a array and how to use it ?
Back to top
View user's profile Send private message
References
PostPosted: Sun May 21, 2006 7:38 pm    Post subject: Re: Could you give me a sample which declare a array and how to Reply with quote

banu

New User


Joined: 09 Aug 2005
Posts: 8
Location: Chennai

PostPosted: Tue May 23, 2006 3:41 pm    Post subject: Re: Could you give me a sample which declare a array and how
Reply with quote

DCL
NAME(3) CHAR(1) INIT(' ');

/* NAME -> Array */

Get List (Name); /* Get the Input */

Do I = 1 to Hbound(Name,1); /* Hbound -> Highest limit of the array */

Put list (Name(i)); /* Display the Output */

End;



-- I Hope this is what you required...
Back to top
View user's profile Send private message
banu

New User


Joined: 09 Aug 2005
Posts: 8
Location: Chennai

PostPosted: Tue May 23, 2006 3:52 pm    Post subject: Re: Could you give me a sample which declare a array and how
Reply with quote

In my previous example, I forgot to give declaration for the variable 'I'.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & ASSEMBLER All times are GMT + 6 Hours
Page 1 of 1