when COMP-3 is preferrable?
Answers were Sorted based on User's Feedback
Answer / sunny kalra
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.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / sunny kalra
Also, 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 ? | 5 Yes | 1 No |
Answer / 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 |
What is the Purpose of Pointer in the string?
How to print 10 to 1 if the input have only 10 digit number?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
what is the difference between Normal vaiable and comp variable.
Difference between lrecl, blksize among PS, PDS issues? i.e in jcl at dcb
In A cobol program , we can use COPY Statement in FILE- SECTION / WORKING-STORAGE SECTION / ENVIRONMENT DIVIION basically what is the difference
We are using the searching a table which is indexed, once the key is found, how can we get the occurance at which the key was found.
can you declare redefine in level 01?
what are the steps to sort in a cobol program?
Write the code implementing the perform … varying.
WORKING-STORAGE SECTION. 01 A PIC X(3) VALUE 'ABC' 01 B PIC 9(3). PROCEDURE DIVISION. MOVE A TO B. STOP RUN. OUTPUT IS: AB3 WHY AND HOW THIS IS HAPPENING.
what is the coding difference between COBOL and CICS.