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
 

 

3 Dimensional array declaration

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: 3 Dimensional array declaration
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    Post subject:
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    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 Dynamic array request/response contai... Suja.Sai CICS 2 Tue Jan 24, 2017 11:37 am
No new posts Unstring list of values into an array. Roshnii COBOL Programming 8 Mon Jun 27, 2016 6:25 pm
No new posts Declaration of varchar in cobol s.saranya srinivasan COBOL Programming 6 Fri Sep 25, 2015 11:43 am
No new posts COBOL Program to Read Array data raj4neo COBOL Programming 8 Sat Aug 15, 2015 12:28 am
No new posts Checking for High-Values in an array amitc23 COBOL Programming 10 Wed Aug 05, 2015 4:09 pm


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