Q1. How will you use two different DB2 qualifiers in a single COBOL program?
Suppose we have 2 tables EMP1 and EMP2 with same structure defined in two different DB2 qualifiers QUAL1.EMP1 and QUAL2.EMP2 now during first 15 days we want to use QUAL1.EMP1 and rest of the days QUAL2.EMP2 how will we do this.
We can create a single program and a single load for this program.
Answers were Sorted based on User's Feedback
Answer / gaurav alugh
We can do our code (in this code define everything for both the tables) and on the basis of DATE function from COBOL we can see what's the date. on the basis of that we can call our query referring to required tables.
| Is This Answer Correct ? | 4 Yes | 3 No |
What is universal database?
How can you get the number of rows impacted by the last executed query?
What is bind package and plan in db2?
How to compare data between two tables in db2?
What are foreign keys in db2?
what is commit & rollback? When and where is used while compiling a cobol-db2 program?
Do we need cursor for Count(*)?
What is database alias db2?
What is db2?
What is check constraint. Explain with example.
How do you simulate the explain of an embedded sql statement in spufi/qmf?
What is the maximum number of columns in a db2 table?