What is the COBOL picture clause of the following DB2 data
types: DATE, TIME, TIMESTAMP?

Answers were Sorted based on User's Feedback



What is the COBOL picture clause of the following DB2 data types: DATE, TIME, TIMESTAMP?..

Answer / islam

date pic x(10)
time pic x(08)
timestamp pic x(26)

Is This Answer Correct ?    40 Yes 3 No

What is the COBOL picture clause of the following DB2 data types: DATE, TIME, TIMESTAMP?..

Answer / kalyani

DATE PIC X(10)
TIME PIC X(8)
TIMESTAMP PIC X(26)

Is This Answer Correct ?    23 Yes 2 No

What is the COBOL picture clause of the following DB2 data types: DATE, TIME, TIMESTAMP?..

Answer / kkings

DATE • Represented as a sequence of eight unsigned
packed decimal digits (yyyymmdd), occupying four bytes.
• Range 00010101 to 99991231 A.D.
TIME • Represented as a sequence of six unsigned
packed decimal digits (hhmmss), occupying three bytes.
• Range 000000 to 240000.
TIME STAMP • Is a combination of date and time,
accurate to the nearest microsecond.
• Represented as a sequence of 20 unsigned packed
decimal digits (yyyymmddhhmmssnnnnnn), occupying ten bytes.
• Range 00010101000000000000 to 99991231240000000000.

Is This Answer Correct ?    5 Yes 0 No

Post New Answer

More DB2 Interview Questions

Is db2 relational database?

0 Answers  


What is the significance of the CURSOR WITH HOLD clause in a cursor declaration?

4 Answers  


what is the difference between declaring the cursor in WS section and Procedure division?

1 Answers   HCL,


Explain what are the various isolation levels possible?

0 Answers  


Which component is responsible for db2 startup and shutdown?

0 Answers  






What are the contents of dclgen?

0 Answers  


What are the advantages of using a PACKAGE?

2 Answers  


If we have 100 records in the PF, we deleted all the records then what is the Size of the PF?

2 Answers  


What is bind plan?

0 Answers  


How to see the structure of db2 table??

4 Answers   IBM,


How to find the maximum value in a column in the db2 database?

0 Answers  


How can i install db2 9.x on AIX based system..? plz reply the detailed steps involved....?

0 Answers   IBM, TCS,


Categories