Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref

Author Message
krishnasaikiah

New User

Joined: 14 Mar 2007
Posts: 24
Location: gurgaon

 Posted: Wed Oct 17, 2007 12:41 pm    Post subject: Sequential file logic to take sum of percentage 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

murmohk1

Senior Member

Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

Posted: Wed Oct 17, 2007 12:45 pm    Post subject:

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.
Bitneuker

CICS Moderator

Joined: 07 Nov 2005
Posts: 1105
Location: The Netherlands at Hole 19

Posted: Thu Oct 18, 2007 11:42 pm    Post subject:

 Quote: Put your effort. If you are held at some point because of some reason.... we are always here.

Bitneuker

CICS Moderator

Joined: 07 Nov 2005
Posts: 1105
Location: The Netherlands at Hole 19

 Posted: Thu Oct 18, 2007 11:47 pm    Post subject: 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
dick scherrer

Site Director

Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

Posted: Fri Oct 19, 2007 12:01 am    Post subject:

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.
Bitneuker

CICS Moderator

Joined: 07 Nov 2005
Posts: 1105
Location: The Netherlands at Hole 19

 Posted: Fri Oct 19, 2007 12:03 am    Post subject:
murmohk1

Senior Member

Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

Posted: Fri Oct 19, 2007 8:56 am    Post subject:

George,

 Quote: If you need a cobol program to solve it why don't you just write one?