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
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 .....
What is null indicator in db2?
What is collection in db2 bind?
What is null in db2?
Comment whether the cursor is closed during commit or not.
What is the difference between plan and package in db2?
Is it possible to alter a table – for example adding a column, when another user is accessing or updating some columns?
How to retrieve rows from a db2 table in embedded sql?
Can you use max on a char column?
What is cursor stability in db2?
How can you classify the locks in db2?
How to execute stored procedure in db2 command editor?
How to view db2 table structure?
What is the difference between oracle and db2?
What is node in db2?