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

hw to create 3 dimensional array & hw to access it?

1 Answers  


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.

1 Answers  


Have you code any new programs in COBOL ? What is the functionality of the programs?

2 Answers   Patni, Xansa,


what is the advantage of using redefines instead of delaring the variables ?

5 Answers   HCL,


What is COMP-1? COMP-2?

4 Answers   CitiGroup,






can we redefine 77 level item is it possible

4 Answers   HCL,


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

12 Answers   TCS,


what are the isolation levels and where we use it in the db2 program

3 Answers   TCS,


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 ?

3 Answers   TCS,


What are ISOLATION LEVELS? Where do we need to specify them?

3 Answers   EXL,


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.

1 Answers   DSRC,


Categories