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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How to resolve deadlock issue

17966


by using cursors , we can access particular records from the table based on some condition, i want to delete those selected records, how can we write a query for this in the program?

7506


What are the prerogatives?

615


What is database reorganization?

587


What is meant by union and union all?

583






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

642


How do I add a column in db2?

589


What is syscat in db2?

574


How and when does the db2 enforces the unique key?

613


Is db2 a mainframe database?

565


What is runstats db2?

576


What is a db2 cursor?

622


How to find schema of a table in db2?

570


What's The Percentage Free Space ?

768


Explain the contention situations caused by locks?

589