MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

array logic

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Interview Q & A
View previous topic :: View next topic  
Author Message
Maximus
Beginner


Joined: 17 Nov 2005
Posts: 21
Topics: 11

PostPosted: Fri Sep 15, 2006 2:29 pm    Post subject: array logic Reply with quote

How do u represent the below array
explain with an example
Code:

01 WS-LIST-TABLE.
      05 WS-PARENT OCCURS 5 TIMES.
         10 WS-CHILD OCCURS 300 times
            15 WS-CHILD1 Pic 9(3) OCCURS 10 times
            15 WS-CHILD2 Pic 9(3) OCCURS 10 times
         10 WS-XYZ Pic 9(3) OCCURS 300 times   
         10 WS-ABC Pic 9(3) OCCURS 300 times   

indexed by a1 a2 and a3
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12370
Topics: 75
Location: San Jose

PostPosted: Fri Sep 15, 2006 8:50 pm    Post subject: Reply with quote

Maximus,

There can be 5 parents and each parent can have 300 children and 300 xyz and 300 abc. And for every child there can 10 children1 and 10 children2


Code:


                         5 parents
                            |
                            |
---------------------------------------------------------------
|                           |                                 | 
300 child                   300-xyz                          300-abc
    |
    |
---------
|       |
10 c1  10 c2



Hope this helps...

Cheers

Kolusu
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Interview Q & A All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group