Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Do USAGE IS DISPLAY stores data item in binary of its ASCII

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Do USAGE IS DISPLAY stores data item in binary of its ASCII
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
No new posts Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm
No new posts Can EDCICONV convert EBCDIC to ASCII... natt.sut IBM Tools 3 Fri Nov 17, 2017 8:46 pm
No new posts Extract Record using range of Data scorp_rahul23 DFSORT/ICETOOL 3 Wed Nov 15, 2017 11:54 pm
No new posts Updating data from one file to other!!! Vignesh Sid SYNCSORT 1 Mon Nov 06, 2017 2:42 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us