JCW2
asked on
COBOL Error
Disclaimer: I'm taking a class.
I'm trying to find an error in this COBOL code; this file is related to the items at http://www.experts-exchang e.com/Prog ramming/Al gorithms/Q _26637173. html.
Do you have any hints?
I'm trying to find an error in this COBOL code; this file is related to the items at http://www.experts-exchang
Do you have any hints?
Or are you trying to answer the assignment question of:
I would suggest you walk through the logic on 2008 and look for any potential problems in the way it derives the totals.
~bp
For example the first row of output program CBL1008 is for Anchorage
Alaska and the four quarters reported are:
48,710,830- 950,870,160- 427,544,050+ 175,897,950-
The above totals to 747,934,890-
However, CBL2008 reported total for Anchorage Alaska is 47,934,890-
Correct CBL2008 program to accurately total the four quarters for
each city/county.
If that is the problem to be solved, I do see why that would be happening. But honestly, I don't think EE is the place to get direct answers to class assignments, so I;m not going to just post that, it wouldn't be fair to you.Alaska and the four quarters reported are:
48,710,830- 950,870,160- 427,544,050+ 175,897,950-
The above totals to 747,934,890-
However, CBL2008 reported total for Anchorage Alaska is 47,934,890-
Correct CBL2008 program to accurately total the four quarters for
each city/county.
I would suggest you walk through the logic on 2008 and look for any potential problems in the way it derives the totals.
~bp
ASKER
Okay, I'm looking at the picture clauses. I'm not familiar with that structure, so can you explain things such that I understand how they affect the program, and the clauses themselves?
What class are you taking where they haven't taught you about picture clauses, but are debugging COBOL programs? And don't you have a text or reference on the language.
~bp
~bp
ASKER
I'm in a mainframing course. I have a reference, but do you have anything at all to say about picture clauses? I'm a little confused.
So, do you understand what the following means at all? (trying to figure out how to help you without giving away the answer...)
PIC S9(8) COMP-3
~bp
PIC S9(8) COMP-3
~bp
ASKER
Signed number with 8 digits
ASKER
(packed decimal)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you for your help.
~bp