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: 7999
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 RULES(NOEVENPACK) in cobol jackzhang75 COBOL Programming 5 Wed Mar 29, 2017 12:47 am
No new posts Data replication from multiple Db2 ta... kishpra DB2 5 Mon Mar 27, 2017 9:58 pm
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm


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