when COMP-3 is preferrable?

Answer Posted / kiran

Hi friends Both are correct and you can make use of them as
your reference.
Packed Decimal representation. Two digits are stored in
each byte. Last nibble is for
sign. (F for unsigned positive, C for signed positive and D
for signed negative)
Formula for Bytes: Integer ((n/2) + 1)) => n is number of
9s.

if you need more than 18 decimal digits, you must use COMP-
3 (or DISPLAY) as COMP variables cannot exceed 18 digits
while COMP-3 can be up to 31 digits.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do you reference the variable block file formats from cobol programs

803


What is the difference between comp and comp-3?

796


What are 77 levels used for?

751


What are the different rules of SORT operation?

785


how do you reference the esds vsam file formats from cobol programs

734






Write down the divisions of cobol program?

750


Discuss about changing dataset name in proc.

839


What is the difference between comp and comp-3 usage?

776


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

2061


What are all the divisions of a COBOL program?

757


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2008


what is difference between cobol and cobol/400

21859


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

943


What is difference between static and dynamic call in cobol?

903


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

752