What is the difference between PIC 9.99 and PIC9v99?



What is the difference between PIC 9.99 and PIC9v99?..

Answer / Siddhartha

PIC 9.99 denotes a field with nine digits that can hold up to 9 numeric characters, while PIC9v99 represents a field of nine characters where leading zeros are preserved.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

What is the purpose of Identification Division?

1 Answers  


what is the difference between start and startbr?

2 Answers  


How is sign stored in a comp-3 field?

7 Answers  


have in 100 records in a flat file i want to move records like 1,3,5,7,9,11,.. to Output file1 and 2,4,6,8,10,12,14 .. records moved to Output file2..Pls Provide real time answer..

5 Answers   TCS,


Name the divisions in a COBOL program ?

7 Answers  


How do you get the data to code the BMS macro?

1 Answers   IBM,


)what is retrieve?

1 Answers   IBM,


What are the different types of condition in cobol and write their forms.

1 Answers  


created cluster using IDCAMS ..that is empty ..when i write a program for read using Input ..wil it open the cluster or gives any error?

2 Answers   HCL,


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.

5 Answers   TCS,


The below is the declaration for a variable ws 01 ws pic 9(3). if you want to insert space how will you do that. in which level u should do it

3 Answers   ADP,


I HAVE FOLLOWING DECLARATION. 02. A PIC X(10) VALUE 'XXXXXXXXXX'. 02. B REDEFINES A. 05. C PIC X(3). 05. D PIC X(3). 05. E PIC 9(3). IN MY PROG, I HAVE MOVE 1 TO E. DISPLAY A. WHAT WILL BE DISPLAYED AS A RESULT OF THIS? PLEASE EXPLAIN THE ANSWER. THANKS.

7 Answers   Amdocs,


Categories