COMPUTATIONAL-4 or COMP-4 (binary) This is the equivalent of BINARY. 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...
Re: Compiler Options and COMP values on Disk > Hein and Dennis are technically correct within the COBOL language > (and outside of Richard's DEBUG pieces), but all of these fine folks > are incorrect in common programming practice. Sorry "DEBUG pieces"? Which bit of the follo...
and each digit is binary coded. Since a digit only has ten possible values (0-9), it can be represented in binary form with only 4 bits. Four bits is called a "nybble", and each nybble contains one digit of the value. Therefore, you ...
1. The COBOL PIC, or picture, for a comp-3 packed field specifies the number of digitsafter unpacking. The actual number of bytes occupied in the file is about half that. To calculate the number of bytes from the PIC, add 1 (for the sign) to the total number of digits, divide by ...
The COBOL PIC, or picture, for a comp-3 packed field specifies the number of digitsafter unpacking. The actual number of bytes occupied in the file is about half that. To calculate the number of bytes from the PIC, add 1 (for the sign) to the total number of digits, divide by 2,...
Since you obviously have a reading problem (this is explained in the COBOL manualsas you have been repeatedly told), I'll elaborate: The first bit is the sign bit -- 0 means positive, 1 means negative. The next seven bits are the exponent. For technical reasons, IBM stores the exponent...
in my view comp clause doesn't support decimal values it supports only binary values.decimal values will be supported by comp-3 Was this answer useful? Yes ReplyRahul Jun 11th, 2015 I believe above question will occupy 8 bytes. As for: 1 - 4 characters - 2 bytes 5 - 9 character...
how above values displayed. veera lramani New User Joined: 03 Nov 2004 Posts: 21 Location: NOIDA, India Posted: Mon Nov 29, 2004 10:47 am Hi Veera, First of all these fields would have pic in 9(10) and not X(10) as was in your example. ...
Re: Compiler Options and COMP values on Disk > Hein and Dennis are technically correct within the COBOL language > (and outside of Richard's DEBUG pieces), but all of these fine folks > are incorrect in common programming practice. Sorry "DEBUG pieces"? Which bit of the following are ...
Re: Compiler Options and COMP values on Disk > Hein and Dennis are technically correct within the COBOL language > (and outside of Richard's DEBUG pieces), but all of these fine folks > are incorrect in common programming practice. Sorry "DEBUG pieces"? Which bit of the follo...