Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Find out the highest value among different groups

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
sarat

New User


Joined: 30 Jun 2006
Posts: 1

PostPosted: Wed Oct 18, 2006 9:24 pm    Post subject: Find out the highest value among different groups
Reply with quote

i have a issue in array.

My requirement is

Requirement

I have to find out the highest value among different groups.

Situation:1

Code Amount groups
10000___ 2000 grp1
10001 2500 grp2
10002 2500 grp1

Here amount of grp1 and amount of grp2 is taken

Third amount is set to zero.

Situation 2

codes Amount groups
29805______ 2000 grp1
58673 2500 grp2
29805 2000 grp4

Here all the three amount are taken.

Now there are 12 different groups. Grp1 to grp12

The above example has only 3 lines. There can be any number of lines.

You can have the count in variable called counter.

In the above example count is 3

You can refer each amount So amt(ctr) gives first amount, varying ctr from 1 to counter gives different amount.

Similarly groups can be accessed by varying same counter

Eg grp(ctr), if counter = 1 then grp(1)


Please help
Back to top
View user's profile Send private message

guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Wed Oct 18, 2006 10:18 pm    Post subject:
Reply with quote

Hi Sarat,

Would u please restate ur problem.
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 SORT BUT RETAIN HIGHEST VALUE ON NON-... leondan22 DFSORT/ICETOOL 2 Thu Dec 14, 2017 8:13 pm
No new posts Split files upto certain limit based ... bubbu75 DFSORT/ICETOOL 5 Tue Nov 14, 2017 11:11 pm
No new posts Command to find TMEMBER name for a TPIPE Siva NKK Kothamasu IMS DB/DC 0 Wed Aug 16, 2017 6:08 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us