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 dynamic array in cobol? what is the difference b/w array and table in cobol?
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
How to use the same COBOL program in Batch and CICS on lines? explain with an example
What are the divisions in a cobol program? Which one is the mandatory division among them?
Explain what you understand by passing by value.
how many maximum no of variables can be declared in linkage section ?
Q:what is the difference between the variable length and fixed lenght.how it varies in the cobol.
study the following code 01 A1 05 B PIC 99 05 C PIC X(4) 01 A2 05 B PIC 99V99 05 C PIC A(4) pick out the valid statement from the following a.A1 and A2 can not have sub-ordinates b.A1 and A2 can have the same sub-ordinates but must have same PIC clause c.there is nothing wrong d.A1 and A2 can have same sub-ordinates provided they are not at 01 level
how to transfer the file from pc to mainframe??
How to define a array dynamically.....
01 x pic s9(8) comp. How will the following value be internally allocated '18787'
What are the different data types available in COBOL?