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

example for sub strings ? and refernce modifications whit output pls

2060


what is amode(24), amode(31), rmode(24) and rmode(any)?

882


What do you understand by psb and acb?

835


What kind of error is trapped by on size error option?

944


How are the next sentence and continue different from each other?

993






What is the compute verb? How is it used?

842


What are declaratives and what are their uses in cobol?

919


What is the difference between a binary search and a sequential search what are the pertinent cobol?

910


What is comp-1 and comp-2?

922


What is redefines clause in COBOL?

1022


Write a program to explain size error.

876


i want a program using by if, evaluate , string, unstring, perform, occurs?

4328


How do we get current date from system with century in COBOL?

1043


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

1999


What is the local-storage section?

872