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 Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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