db2 variable decimal(15,2) what is the equalent size of
cobol variable

Answers were Sorted based on User's Feedback



db2 variable decimal(15,2) what is the equalent size of cobol variable..

Answer / quasar chunawala

The correct COBOL Field that can hold the Value of DECIMAL
(15,2) SQL Field should be declared as

05 WS-COBOL-DECIMAL-FIELD PIC S9(13)V9(02) COMP-3.

Is This Answer Correct ?    29 Yes 3 No

db2 variable decimal(15,2) what is the equalent size of cobol variable..

Answer / ch.mohan

9(13)v9(2)

Is This Answer Correct ?    12 Yes 8 No

Post New Answer

More COBOL Interview Questions

Can anyone please give the example of Inline Perform.

6 Answers   TCS,


explain sorting techniques in cobol program?

0 Answers  


Write the code to count the sum of n natural numbers.

0 Answers  


How can you pass values from COBOL program to non-COBOL programs?

2 Answers  


Suppose i have a Cobol field of 10 byte. it contains a decimal sign.How to know where is the point location?

1 Answers  






01 ws-p pic 9(2). 01 ws-q pic 9(2) value 01. 01 ws-r pic 9(2) value 99. p.d. compute p = q + r what will be result of p ans(00) but my question is that how i got 10 on the place of 00. (truncation will ocuure on right side not left). please tell me ?

6 Answers   L&T,


I hav vari declaration like..... 77 a pic s9(9).99. 77 b pic s9(9).99 comp. 77 c pic s9(9).99 comp-3. if i use MOVE 123456789.99 to a,b,c what happen every one working fine ?

1 Answers   Mphasis,


9(2).99 how many bytes take? Why . consider as a byte?

2 Answers  


why mainframe we use not like java as frontend oracle as backend. or not word excel.In there also huge ammount data stored.

2 Answers   TCS,


How To move a value to an array using move verb?

3 Answers   IBM,


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.

2 Answers   L&T,


how to access the file from prodution from changeman tool and to submit a file to production

1 Answers   IBM,


Categories