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 |
how to change picture class of copy book variable inside program?
I have two questions here. 1. How to read a flat file in reverse order? 2. How to read a VSAM KSDS file in reverse order? In both the cases we donot know the total number of records.
i need the code for this program in cobol. 2 + 1 = 3 4+3=7 6+5=11 8+7=15 10+9=19
What COBOL construct is the COBOL II EVALUATE meant to replace?
how can we get current dat and time thru cobol pgm
Can the OCCURS clause be at the 01 level?
Which of the following EDITind and PICTURE symbols is to be used if a minus(-) is to appear before the value if the value is -ve and a plus(+) is to appear before the value if the value is +ve? (a) + (b) - (c) + OR (d) It is not possible
how to crack cts interview apps? NOVEMBER 21 2010
The maximum number of dimensions that an array can have in COBOL-85 is ?
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
Why did you choose to work with ibm mainframe cobol programming?
Will the variable POS in the following code have a value of 2 or not? 01 POS PIC S9(4) COMP VALUE 2. 01 FIRST-NAME PIC X(10) VALUE 'ABC'. 01 LAST-NAME PIC X(10) VALUE 'XYZ'. 01 NAME PIC X(20) VALUE SPACES. STRING FIRST-NAME DELIMITED BY SPACES ' ' DELIMITED BY SIZE LAST-NAME DELIMITED BY SPACES INTO NAME WITH POINTER POS