how many bytes timestamp token occupies?
Answers were Sorted based on User's Feedback
Answer / sarath
Timestamp token has 26 characters ad it will stores 10 bytes
| Is This Answer Correct ? | 21 Yes | 1 No |
Badically a Timestamp has 20 unsigned packed decimal digits
i.e. YYYYMMDDHHMMSSNNNNNN and thus occupy 10 bytes.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / santhosh vayathuri
TIMESTAMP ::
DB2 IT WIL TAKE ==> 10 BYTES WHERE AS IN
(YYYYMMDDHHMMSSNNNNNN)
COBOL ==> 26
| Is This Answer Correct ? | 2 Yes | 0 No |
How to see the structure of db2 table??
How can you display the current date & current time ?
Give the COBOL definition of a VARCHAR field.
How to check last update on table in db2?
In a Cobol-DB2 program, I am fetching rows from 4 tables using cursor and then based on the a field present in that table, It processes the information accordingly..for example stat-c is one digit field..if stat-c is 'D' then the a row is deleted from table and written those details in to a file. If the stat-c is 'U' then a row is updated (hardcoded what to update)in a table and written those details in to a file. If the stat-c is 'I' then a row is inserted in a table and written those details in to two files. The issue is i have to include the intermediate commits. When an abend occurs, due to commit statement db2 tables will be saved, But there will be lose of file contents. When we resubmitting the job associated with this program there will be insert ,update and delete anomolies to avoid that what measures could be taken?. The intermediate commit is nothing but issuing commit after massive inserts, updates and deletes(sum of 500actions)
what are the frequent DB2 abends did you encounter in your programs ?? What are different SQL abends ??
When do you specify the isolation level?
What is a result table?
db2 query I have one table with the following details. SNO SNAME DOJ ------ -------------------- ---------- 10 KRISH 2007-03-19 20 REDDY 2007-05-19 30 RRRRR 2007-05-19 40 BBBBB 2008-05-19 50 CCCCC 2009-05-19 60 JJJJJ 2009-05-19 70 JJJJJ 2004-05-19 i want the output in the following format:( no of students joined in each year(no nedd to consider about month and date) year count --------- ---------- 2004 1 2007 3 2008 1 2009 2
Plan has the optimized access path in it. But is that optimized access path is attained or known
How to create a table using embedded sql?
What is isolation level?