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
 
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 OC4 in SORT Mohan Kothakota DFSORT/ICETOOL 2 Tue Sep 12, 2017 6:30 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts SORT Trailer Count - LRECL Output co... amorante DFSORT/ICETOOL 5 Tue Aug 29, 2017 8:57 pm
No new posts Changing sort Card Dynamically vickey_dw DFSORT/ICETOOL 5 Sat Aug 19, 2017 2:33 pm
No new posts ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm

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