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

How to execute stored procedure in db2 command editor?

0 Answers  


B37 abend during spufi?

0 Answers   IBM,


why we create view.

5 Answers  


Shall i use this query to retrieve first 4 records, Select empno, sal from emptbl where empno < 5. like this can we fetch first 100 records?

3 Answers  


How is the SUBSTR keyword used in sql?

1 Answers  






What is db2?

0 Answers  


On which levels locks can be applied?

0 Answers  


Hi Everyone... Under the Logical files, when am working on multiple rec format logical file, I have joined two pf's using the multiple record format logical file concept, but when i run queried the LF only the first mentioned pf records are reflecting and I am not able to see any of the field records specified under the second pf. Kindly let me know whats the reason behind this. Below is the str of LF., R rec PFILE(LOGICAA) CUSTNO CUSTNAME BILL K CUSTNO R rec1 PFILE(LOGICAA1) CUSTNO ADD K CUSTNO .....

0 Answers  


What is runstats and reorg in db2?

0 Answers  


What is tablespace?

3 Answers  


how to resolve -805. give clear explination for that

2 Answers   IBM,


List down the data types in the db2 database.

0 Answers  


Categories