What is the difference between PIC 9.99 and 9v99?

Answers were Sorted based on User's Feedback



What is the difference between PIC 9.99 and 9v99?..

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

What is the difference between PIC 9.99 and 9v99?..

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

What is the difference between PIC 9.99 and 9v99?..

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

What is the difference between PIC 9.99 and 9v99?..

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

What is the difference between PIC 9.99 and 9v99?..

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

What is the difference between PIC 9.99 and 9v99?..

Answer / jswan

The Pic 9.99 has a definite decimal point and contains 4 bytes, while the Pic 9v99 has a implied or assumed decimal point and contains 3 bytes.

Is This Answer Correct ?    2 Yes 0 No

What is the difference between PIC 9.99 and 9v99?..

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

Post New Answer

More COBOL Interview Questions

When would you use in-line perform?

2 Answers  


In an EVALUTE statement is the order of the WHEN clauses significant?

4 Answers  


which generation language is cobol

4 Answers   Kanbay,


period is missing in the cobol program which error we getting

5 Answers   TCS, Tesco,


What is tne need to use sub programs in Cobol?

3 Answers   HSBC,






How to print 10 to 1 if the input have only 10 digit number?

0 Answers  


What is the difference between a binary search and a sequential search what are the pertinent cobol?

0 Answers  


What are the situations u have used in ur project for Subcript and Index ? 1.if u use Subscript why not Index,why u choose Subscript only? 2.if u use Index why not Subscript,what abt Displacement?

2 Answers   Cap Gemini,


in a indexed file what is procedure for read the records from 12 to 18. please give the code example

2 Answers   L&T,


Explain complete concept of table handling in COBOL with an example?

2 Answers   IBM, TCS, Wipro,


Hi................... I have records like this aaaa cccc bbbb And i want output like this bbbb cccc aaaa How can it possible ?. Note:Please make sure records are in unsorted order. somebody plzzz help me.

1 Answers  


i have a sequencial file contains multiple records, i want to extract one row which contains various fields like order number,date,warehouse,.ect.. in to the another file by accepting the order number from jcl. how can i do it. pls help me..

4 Answers   CGI,


Categories