is it possible to change this so the cents columns are not being added.
the reason i ask- when we load to a particular database it doesnt add the cents. i am trying to match the two numbers and of course they are off because of the cents.
i tried it, i pasted the two lines at the end of my code, and it was close but still did not match what we loaded into the database. and the result of the sort was still a number with a decimal point and cents
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Mon Dec 02, 2013 5:29 pm Post subject:
newcobol wrote:
i tried it, i pasted the two lines at the end of my code, and it was close but still did not match what we loaded into the database. and the result of the sort was still a number with a decimal point and cents
As Nic Clouston pointed out your edit mask is showing the cents value but the PD format does not have any cents.
When you say it does not match you need to show us a few examples of input data and show how the sort sum is calculating it incorrectly. _________________ Kolusu
www.linkedin.com/in/kolusu
I am not sure why you have + Sign at the end, just so you know it is treated as a comment and is ignored. If your intention is to add both fields and then perform a sum then you need to do that using inrec/outrec _________________ Kolusu
www.linkedin.com/in/kolusu
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Tue Dec 03, 2013 6:05 pm Post subject:
newcobol wrote:
it appears my numbers on the loaded database match the output of my sortsums.
thank you.
So the proposed Divide by 100 worked? What were the intermediate results you are showing that you thought wasn't working? _________________ Kolusu
www.linkedin.com/in/kolusu
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum