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

I have dataset DS1 which has records say 1 2 3 4 5 ... ... etc And also I have second dataset DS2 whcih has records 1 3 4 5 6 8 .. ... Both the files are sorted and now I want to compare these files and write it into the third files if the records are matching.

4 Answers   FIS, Wipro,


How include time & date in the report generation in cobol programing?

2 Answers  


Difference between cobol and cobol-ii?

0 Answers  


How to replace the GOTO statement in COBOL without changing the structure of program. e.g. consider following code... I.D. E.D. D.D. P.D. compute C = A + B. GOTO para 100-display. compute D = C - D. GOTO 200-display. some other logic...... ........ GOTO 300-para. ...... ...... GOTO 400-para. Now I want to replacce all GOTO statements without changing the structure and otput of program.

6 Answers   Accenture,


Consider the following code: 77 A PIC 99V99 VALUE 55.35 77 B PIC 99V999 VALUE 32.754 ADD B TO A ON SIZE ERROR DISPLAY "ERROR!!!" What will be the result ? (a) A=88.10, B=32.754 (b) A=87.00 B=32.754 (c) A=87.10 B=32.754 (d) ERROR!!! will be DISPLAYed on the screen.

3 Answers   TCS,






Extract only those records from a PS file which are having word 'TEXT' in the records using COBOL? The word TEXT is not present in a particular position in all the records.

2 Answers   RBS,


01 a pic s9(5) occupies how many bytes ?

9 Answers   Wipro,


Explain the configuration section of a cobol program with examples of syntax.

0 Answers  


Did anybody attend the walkin of TCS on 31st July in Gurgaon for any technology,If u have completed 3 round i.e till the HR round,have u received the Offer letter yet? Please let me know.Thanks.

1 Answers  


What is the maximum data length for Numeric DataType ?

3 Answers   Cap Gemini,


A s9(4). B v9(4) value 0.21 can i move this?

3 Answers  


what is Reentrancy and Quasi-reentrancy?

1 Answers  


Categories