IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Doubt in Declaration


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Haripriya3103

New User


Joined: 29 Jun 2005
Posts: 3

PostPosted: Mon Jun 26, 2006 9:03 pm
Reply with quote

I have a variable declared in a existing program as mentione below:

DCL A(1:4) DEC FIXED(10);

Can any one help me in understanding what does A(1:4) actually mean... ?

Thanks.
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Tue Jun 27, 2006 3:43 am
Reply with quote

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IBM3LR20/8.7?SHELF=&DT=20031030085717

Just from PL/I manual

Regards
Pierre
Back to top
View user's profile Send private message
karnatikalyan

New User


Joined: 08 Feb 2006
Posts: 5

PostPosted: Thu Jun 29, 2006 1:34 pm
Reply with quote

Hi,

DCL A(1:4) DEC FIXED(10);

It is single dimentional array where it can have 4 rows and 1 column.

for A(1:4), 1 represents the lower bound and 4 represents the upper bound of A.

Here is another example

DCL A(1:4, 1:4) DEC FIXED(10); is a two dimetional array where a can have 1 to 4 rows and 1 to 4 columns like 4 X 4 matrix.



Regards,
Karnati kalyan.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Doubt about pl/1 (job offer) General Talk & Fun Stuff 5
No new posts doubt when executing a file when logg... TSO/ISPF 2
No new posts COBOL file declaration COBOL Programming 2
No new posts COBOL declaration for table DB2 3
No new posts Doubt in MFS IMS DB/DC 2
Search our Forums:

Back to Top