IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Do USAGE IS DISPLAY stores data item in binary of its ASCII


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mnpawan

New User


Joined: 29 Feb 2008
Posts: 1
Location: bangalore

PostPosted: Tue Apr 15, 2008 4:59 pm
Reply with quote

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?
Quote:
http://www.csis.ul.ie/COBOL/Course/Usage.htm

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.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Tue Apr 15, 2008 5:40 pm
Reply with quote

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.

For a link you should use the URL tags and not the QUOTE tags
http://www.csis.ul.ie/COBOL/Course/Usage.htm
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 1
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top