Does USAGE IS DISPLAY stores data item in binary of its ASCII (Hex) values?
Does it takes the value as char irrespective of its PIC, even if PIC IS 9?
Check this link in quote for "Problems with USAGE IS DISPLAY" and example given for that.
Do this is true?
But when I am compiling the same code on Cobol compiler I am getting correct answer. help me out.
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
The article your link points to is poorly written. If you had read all of it, it tells you what is actually done when you add two display items in COBOL. They are first converted to a computational format (COMP-3 or PACKED DECIMAL for an IBM MAINFRAME) then added and converted back to the proper format for the results.