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

COBOL Datatype Mapping


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

New User


Joined: 08 Dec 2006
Posts: 12
Location: Kolkata

PostPosted: Tue Dec 02, 2008 11:52 am
Reply with quote

In COBOL-74 there is two Usage clause namely USAGE IS REAL and USAGE IS DOUBLE.

The USAGE IS REAL and USAGE IS DOUBLE clauses indicate that data is in an internal floating-point format. A REAL or DOUBLE item is capable of representing a value to be used in computations and is always numeric. Neither the PICTURE clause nor the SIGN clause are permitted for REAL or DOUBLE items.

REAL and DOUBLE items occupy memory:
• A REAL item is single precision; the actual size is equal to six bytes.
• A DOUBLE item is double precision; the actual size is equal to twelve bytes.
• Both REAL and DOUBLE items are not necessarily word-aligned.

In Enterprise COBOL what datatype equivalent to this can fit best?

If any more input is reuired please let me know...

Best Regards,
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Tue Dec 02, 2008 1:01 pm
Reply with quote

Did you check COMP-1 and COMP-2 in COBOL?
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top