What is the difference between PIC 9.99 and 9v99?
Answers were Sorted based on User's Feedback
Answer / gobinath
pic 9.99 is a decimalpoint which occupy 4 bytes
pic 9v99 is a assumed decimalpoint which occupy 3 bytes
| Is This Answer Correct ? | 57 Yes | 4 No |
Answer / mf buzz
there is a small correction in above example.
ex.
A PIC 9.99 VALUE 1.11
B PIC 9v99 VALUE 2.22
display A,B
RESULT
a= 1.11
b=222 ( decimal point is not displayed)
| Is This Answer Correct ? | 39 Yes | 8 No |
Answer / abhinav nimje
Here as 9v99 takes 3 bytes which is preferrable for memory
management purpose.
So while Processing it wont display decimal point but
working will not be hampered.
9.99 will be used for displaying purpose only.
| Is This Answer Correct ? | 17 Yes | 0 No |
Answer / ananta
In pic 9.99 there is dicemal which ocupy space like when we
calculat number of bytes inthis there is 4bytes where as
pic 9v99
has assumed decimal it contains only 3bytes.
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / ajay kumar
pic 99.9 will allocate memory size to the '.' also
but in order to save memory, 99v9 is used wherever possible.
'v' is cosidered as assumed decimal, which is used for calculation by program internally.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / pal
PIC 9.99 occupy 4 bytes
PIC 9v99 occupy 3 bytes
ex.
A PIC 9.99 VALUE 1.11
B PIC 9v99 VALUE 2.22
display A,B
RESULT
A=1.11
B=2v22
| Is This Answer Correct ? | 11 Yes | 44 No |
what if any ,is the syntex error in the following piece of code 01 B PIC A(7) 02 C PIC 9(4) ........ IF(B NUMERIC) ADD 10 TO C a.the condition in the if statement is wrong b.noting is wrong c.because C is initialised.ADD 10 TO C is wrong d.both B and C shoud have same size.
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
what is sort? whis is internal & external sort ?when do u go for inter sort & external sort? tell about some sort utilites?
What is tne need to use sub programs in Cobol?
a pic s9(4) comp b pic s9(4) comp-3 c ???????????????? d ???????????????? move a to c add a+B giving d. what is ur declaration for c,d?
Why we should use cursor ?
What are the rules of the move verb?
What is the difference between static call & Dynamic call?
write a program to eliminate duplicate records in a input file and send them to output file.
Explain the configuration section of a cobol program with examples of syntax.
What is redefines clause in COBOL?
i WANT ALL ERROR codes IN CICS and DB2