View previous topic :: View next topic |
Author |
Message |
murali Beginner
Joined: 21 Apr 2004 Posts: 12 Topics: 9
|
Posted: Sun May 02, 2004 11:17 am Post subject: comp-4 |
|
|
what is comp-4, comp-5 and comp-6 data items. whch cobol supports these? cobol 85 |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Sun May 02, 2004 9:49 pm Post subject: |
|
|
Murali,
Comp-4 is nothing but an equivalent of BINARY.It occupies the same storage as that of a comp item. Comp-5 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.
Comp-6 items are not applicable to mainframe cobol
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
murali Beginner
Joined: 21 Apr 2004 Posts: 12 Topics: 9
|
Posted: Thu May 06, 2004 2:38 am Post subject: |
|
|
thanks for the information |
|
Back to top |
|
|
|
|