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

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


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 1287
Location: Chennai, India

PostPosted: Tue Jun 23, 2009 2:46 pm
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Tue Jun 23, 2009 5:12 pm
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
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: 1287
Location: Chennai, India

PostPosted: Wed Jun 24, 2009 9:26 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Load new table with Old unload - DB2 DB2 6
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Pulling a fixed number of records fro... DB2 2
Search our Forums:

Back to Top