View previous topic :: View next topic
|
Author |
Message |
krishnasaikiah
New User
Joined: 14 Mar 2007 Posts: 24 Location: gurgaon
|
|
|
|
I have a input file of four columns
region cc LOB Percentage
x1 y1 l1 0.5
x1 y1 l1 0.25
x1 y1 l1 0.2
x2 y2 l2 1
need a cobol program which takes region and cc as key.
it has to take sum of percentage of key (region and cc) for each combination.
if percentage is 1 copy all rows as it is in output file.
if sum is less than 1 then add a new row with same region and cc and lob
with the diffrence percentage so as to make it 1.
Please reply as soon as possible |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Krishna,
Quote: |
need a cobol program which takes region and cc as key. |
Put your effort. If you are held at some point because of some reason.... we are always here. |
|
Back to top |
|
|
Bitneuker
CICS Moderator
Joined: 07 Nov 2005 Posts: 1104 Location: The Netherlands at Hole 19
|
|
|
|
Quote: |
Put your effort. If you are held at some point because of some reason.... we are always here.
|
Murali, please explain your response. I'm lost |
|
Back to top |
|
|
Bitneuker
CICS Moderator
Joined: 07 Nov 2005 Posts: 1104 Location: The Netherlands at Hole 19
|
|
|
|
Krishna Saikiah,
This one looks like homework...... If you need a cobol program to solve it why don't you just write one? And when you do, don't forget your key-combination is not unique |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
If you need a cobol program to solve it why don't you just write one |
When you have some code put together, post a reply here if there is something that does not work or you have questions about.
Quote: |
And when you do, don't forget your key-combination is not unique |
which is how you'll control summing. |
|
Back to top |
|
|
Bitneuker
CICS Moderator
Joined: 07 Nov 2005 Posts: 1104 Location: The Netherlands at Hole 19
|
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
George,
Quote: |
Murali, please explain your response. I'm lost |
Quote: |
If you need a cobol program to solve it why don't you just write one? |
I believe , your post has the answer. |
|
Back to top |
|
|
|