Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Doubt in Declaration

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: Doubt in Declaration
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: 456
Location: Belgium

PostPosted: Tue Jun 27, 2006 3:43 am    Post subject: Re: Doubt in Declaration
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    Post subject: Re: Doubt in Declaration
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    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Doubt in MFS abdulrafi IMS DB/DC 2 Fri Oct 21, 2016 3:09 pm
No new posts Declaration of varchar in cobol s.saranya srinivasan COBOL Programming 6 Fri Sep 25, 2015 11:43 am
No new posts Doubt on GETMAIN, FREEMAIN behaviour Arunkumar Chandrasekaran CICS 3 Sun Aug 30, 2015 9:22 pm
No new posts COBOL File Declaration for RECFM=VBS ... thinkmsk COBOL Programming 4 Fri Apr 03, 2015 3:31 pm
No new posts Doubt in using command code O Appu IMS DB/DC 4 Tue Jan 13, 2015 3:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us