IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

DECILE using SORT/COBOL


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 2146
Location: At my coffee table

PostPosted: Mon Sep 03, 2007 6:43 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
Search our Forums:

Back to Top