Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
COMP5 and COMP6

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
veena sampath

New User


Joined: 15 Jul 2005
Posts: 1

PostPosted: Mon Jul 18, 2005 10:30 am    Post subject: do we have comp-5,comp-6 and so on in cobol
Reply with quote

i want to know if we have comp-5, comp-6 and so on in cobol
if so upto what number and their explanations
Back to top
View user's profile Send private message
References
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 279
Location: India

PostPosted: Mon Jul 18, 2005 11:19 am    Post subject:
Reply with quote

Hi Veena,

For our quick reference,
COMPUTATIONAL-5 or COMP-5 (native binary)

These data items are represented in storage as binary data. The data items can contain values up to the capacity of the native binary representation (2, 4 or 8 bytes), rather than being limited to the value implied by the number of nines in the picture for the item (as is the case for USAGE BINARY data). When numeric data is moved or stored into a COMP-5 item, truncation occurs at the binary field size rather than at the COBOL picture size limit. When a COMP-5 item is referenced, the full binary field size is used in the operation. The TRUNC(BIN) compiler option causes all binary data items (USAGE BINARY, COMP, COMP-4) to be handled as if they were declared USAGE COMP-5.

I am not aware of COMP-6.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1