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
 

 

Occurs depending on - on two dimensional array

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

New User


Joined: 11 Dec 2005
Posts: 2
Location: Chennai

PostPosted: Tue Apr 17, 2007 10:49 pm    Post subject: Occurs depending on - on two dimensional array
Reply with quote

Hi,

Kindly let me know, if the following is posible in two dimensional array in COBOL.

A.

Code:
 01 TRANSCRIPT-TABLE.
      02 ACADEMIC-SEMESTER OCCURS 20 TIMES DEPENDING ON X
            03 COURSE-ITEM OCCURS 10 TIMES DEPENDING ON Y
                  04 COURSE-ID     PIC X(5).
                   04 FINAL-GRADE   PIC X(1).

or
B

Code:
 01 TRANSCRIPT-TABLE.
      02 ACADEMIC-SEMESTER OCCURS 20 TIMES DEPENDING ON X
            03 COURSE-ITEM OCCURS 25000 times
                  04 COURSE-ID     PIC X(5).
                   04 FINAL-GRADE   PIC X(1).

Kindly let me know your thoughts.
Regards,
Shihas
Back to top
View user's profile Send private message

Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 962
Location: Richmond, Virginia

PostPosted: Wed Apr 18, 2007 12:29 am    Post subject:
Reply with quote

What were your results when you tested this?
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Wed Apr 18, 2007 1:44 am    Post subject:
Reply with quote

Why wouldn't it be possible?
You will need to take care when changing the ODO counters......
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 Unstring list of values into an array. Roshnii COBOL Programming 8 Mon Jun 27, 2016 6:25 pm
No new posts Add Trailing Zeroes depending upon th... Rohit Umarjikar DFSORT/ICETOOL 3 Fri Oct 23, 2015 1:47 am
No new posts Multiple OCCURS depending on in same ... muralirajansm COBOL Programming 6 Fri Aug 21, 2015 4:23 pm
No new posts COBOL Program to Read Array data raj4neo COBOL Programming 8 Sat Aug 15, 2015 12:28 am
No new posts 3-D Table with nested DEPENDING ON Cl... VivekKhanna COBOL Programming 5 Sat Aug 08, 2015 11:18 pm


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