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: 8700
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 All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts IBM IMU Utility for Easytrieve Code t... IBM Tools 0
No new posts Big Five Personality Test in COBOL - ... COBOL Programming 0
No new posts I wrote a Hallmark Movie Plot Generat... COBOL Programming 0
No new posts COBOL Text Adventure Engine for TK4- ... COBOL Programming 0
No new posts Cobcalc: An Algebraic Expression Eval... COBOL Programming 10
Search our Forums:


Back to Top