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

3 Dimensional array declaration


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
engg.manish
Currently Banned

New User


Joined: 10 Oct 2006
Posts: 1
Location: noida

PostPosted: Wed Dec 05, 2007 12:29 pm
Reply with quote

HI all,

I want to declare 3d array how can i do it.

as i have array like

1. school name

2. each school will contain 3 classses

3. each class will contain 3 student.

Thanks
Back to top
View user's profile Send private message
rpuhlman

New User


Joined: 11 Jun 2007
Posts: 80
Location: Columbus, Ohio

PostPosted: Wed Dec 05, 2007 5:56 pm
Reply with quote

Code:
01  WS-SCHOOL-TABLE-AREA.
    03  WS-SCHOOL-NAMES OCCURS 100 TIMES.
        05  WS-SCHOOL-NAME             PIC  X(20).
        05  WS-SCHOOL-CLASSES OCCURS 3 TIMES.
            07  WS-SCHOOL-CLASS        PIC X(20).
            07  WS-SCHOOL-STUDENTS OCCURS 3 TIMES.
                09  WS-SCHOOL-STUDENT  PIC  X(20).
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 COBOL Ascending and descending sort n... COBOL Programming 5
No new posts To find an array of words (sys-symbol... JCL & VSAM 9
No new posts How to move values from single dimens... COBOL Programming 1
No new posts array indexing PL/I & Assembler 4
No new posts COBOL batch program using large size ... COBOL Programming 3
Search our Forums:

Back to Top