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 

highest number

 
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: Tue Feb 28, 2006 2:57 am    Post subject: highest number Reply with quote

Hi all,


I have to move the occurs group

from

05 Gp1 OCCURS 3 TIMES.
10 d PIC X(02).
10 e PIC X(06).
to


05 gp2 OCCURS 3 TIMES.
10 d PIC X(02).
10 e PIC X(06).


the values e of gp1(1) > e of gp1(2)> e of gp1(3), in this case highest value gp1(1) will be moved to gp2(1), 2 to 2 ....

but sometimes they are all like this e of gp1(1) = e of gp1(2) = e of gp1(3), at this point i have to check which is the highest among d of gp1 and move highest value to lowest value to gp2.

Please let me know the logic to find the highest of numbers:





regds.
suma
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Tue Feb 28, 2006 9:03 am    Post subject: Reply with quote

suma,

Please search before posting. check this link

http://mvsforums.com/helpboards/viewtopic.php?t=4687&highlight=max

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