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 

occurs class doubt

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
suma
Beginner


Joined: 23 Jan 2006
Posts: 65
Topics: 29

PostPosted: Mon Jan 23, 2006 2:06 am    Post subject: occurs class doubt Reply with quote

I have two fields which occurs as shown below
10 gp1.
15 a1 OCCURS 10 TIMES PIC X(2)
15 a2 OCCURS 10 TIMES PIC X(2)


10 gp2.
15 a1 OCCURS 3 TIMES PIC X(2).
15 a2 OCCURS 3 TIMES PIC X(2) .

I have to move fields a1 of gp1 to a1 of gp2 and a2 of gp1 to a2 of gp2.

but a1,a2 of gp1 occurs 10 times and a1,a2 of gp2 occurs 3 times.

how can I perform this? If I use perform until how times I have use?

plz suggest me the correct answer!!


thanks
suma
Back to top
View user's profile Send private message
Chiru
Beginner


Joined: 26 Dec 2005
Posts: 15
Topics: 7

PostPosted: Mon Jan 23, 2006 2:44 am    Post subject: Reply with quote

Hi Suma,
You can make thru subscript and Use PERFORM UNTIL SUBSCRIPT > 3
But, you cannot move all the set of values of GP1 you can limit yourself to only 3.

THANKS
-----------
CHIRU
Back to top
View user's profile Send private message
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Mon Jan 23, 2006 3:38 am    Post subject: Reply with quote

Assuming that the subordinate items have same name I think, not sure, that the first three elements can also be moved by -

MOVE CORR GP1 to GP2.
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


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

PostPosted: Mon Jan 23, 2006 5:05 am    Post subject: Reply with quote

suma,

Please search before posting. The exact same question was answered here

http://www.mvsforums.com/helpboards/viewtopic.php?t=5465&highlight=occurs

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
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 -> Application Programming 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