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 |
hw to create 3 dimensional array & hw to access it?
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.
Have you code any new programs in COBOL ? What is the functionality of the programs?
what is the advantage of using redefines instead of delaring the variables ?
What is COMP-1? COMP-2?
can we redefine 77 level item is it possible
Consider the following COBOL entries 05 X PIC 99 VALUE 10. ADD 40 X TO X. COMPUTE X = 3 * X - 40. The result in X is
what are the isolation levels and where we use it in the db2 program
have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records...
2 Answers ITC Indian Tobacco Company, PNP, TCS,
how to pass 100 to s9(4) how r they inserted ?
What are ISOLATION LEVELS? Where do we need to specify them?
I need to compare two VSAM files, both having 'number' as key. If there is a matching record, write the data into another VSAM file. How will it be possible.