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

What is access path in db2?

0 Answers  


What are common abends

1 Answers   SPIC, Virtusa,


db2 maintains information about the data... a.in tables. b.in a set of tables known as db2 catalog. c.in db2 database. d.none of the above.

1 Answers  


How can you compare table column after update and before update?

5 Answers   Satyam,


What is the cascade rule and how does it relate to deletions made with a subselect?

1 Answers  


What is the difference between IN subselects and EXISTS subselect?

1 Answers   HCL, PreVator, TCS,


How to solved 818 error

4 Answers   Keane India Ltd, Wipro,


can we view the access paths created by dbrm ? how ? thx

2 Answers   IBM,


In an sql table that is embedded, what is the procedure to retrieve rows that are part of a db2 table?

0 Answers  


What is normalization and what are the five normal forms?

1 Answers  


What is a subselect? Is it different from a nested select?

1 Answers  


What is bind package and plan in db2?

0 Answers  


Categories