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
 

 

DECILE using SORT/COBOL

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

New User


Joined: 06 Jul 2007
Posts: 10
Location: Chentrappinni

PostPosted: Mon Sep 03, 2007 6:33 pm    Post subject: DECILE in COBOL
Reply with quote

'Decile' is often used in the statistic world. It is a way of Ranking a list of Data; after grouping them into 10 different groups based on a key value.
A concept of Percentile.

If the key value is available in the database, then we have the TOP..PERCENT method in SELECT SQL which divides the selected rows into 10 groups and fetch the TOP n'th group. But here, the key value has to be calculated in a COBOL program and then sort the list of rows(or array fields) according to the key value and then divide the list or array into 10 group and rank the top group as 1, second as 2 and so on....

Any idea on a keyword similar to SQL TOP..PERCENT method in COBOL? Is there an easier method?
Back to top
View user's profile Send private message

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Mon Sep 03, 2007 6:43 pm    Post subject: Re: DECILE in COBOL
Reply with quote

Dingu wrote:
Any idea on a keyword similar to SQL TOP..PERCENT method in COBOL? Is there an easier method?
Can't think of any, but you would not need to sort, just identify the highest (available/possible?) score and the lowest (available/possible?) score and divide that range into ten ranges.......
Back to top
View user's profile Send private message
Dingu

New User


Joined: 06 Jul 2007
Posts: 10
Location: Chentrappinni

PostPosted: Mon Sep 03, 2007 6:51 pm    Post subject: Re: DECILE in COBOL
Reply with quote

CICS Guy wrote:
Dingu wrote:
Any idea on a keyword similar to SQL TOP..PERCENT method in COBOL? Is there an easier method?
Can't think of any, but you would not need to sort, just identify the highest (available/possible?) score and the lowest (available/possible?) score and divide that range into ten ranges.......


That's indeed a good suggestion.. i shall do the normal coding and test until i find any related COBOL keyword or method for the implementation to be different.
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 How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. SORT trick needed bshkris SYNCSORT 6 Tue May 02, 2017 4:35 am


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