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
 

 

On what situation we need to use table or array in cobol?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
dipti85
Currently Banned

New User


Joined: 11 Jun 2009
Posts: 6
Location: chennai

PostPosted: Tue Jun 23, 2009 2:26 pm    Post subject: On what situation we need to use table or array in cobol?
Reply with quote

Hi,


My doubt is on which situation we need to use arrays or table in cobol.can we do the same work with the help of files? I have confusion in table concept in cobol?
Back to top
View user's profile Send private message

Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Tue Jun 23, 2009 2:46 pm    Post subject: Reply to: On what situation we need to use table or array in
Reply with quote

Hi,

Quote:
My doubt is on which situation we need to use arrays or table in cobol.


A table is the COBOL equivalent of arrays. You can have one, two or three dimensional tables.

The situation is the same to that of using tables/arrays in other programming languages.

To know more about COBOL tables check the manuals link.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7931
Location: Bellevue, IA

PostPosted: Tue Jun 23, 2009 5:12 pm    Post subject:
Reply with quote

Which situation would you need to use tables or arrays in whatever language(s) you already know? COBOL is no different.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Wed Jun 24, 2009 7:57 am    Post subject:
Reply with quote

Hi Aaru,
Quote:
You can have one, two or three dimensional tables.

Enterprise COBOL now allows 7 dimensions and a max table size of 128MB.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Wed Jun 24, 2009 9:26 am    Post subject: Reply to: On what situation we need to use table or array in
Reply with quote

Hi Jack,

Quote:
Enterprise COBOL now allows 7 dimensions and a max table size of 128MB.


Thanks a lot for the information.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm


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