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.
Answer Posted / 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 |
Post New Answer View All Answers
What is meant by explain?
What is the use of predicate?
What is load replace in db2?
What is iseries database?
When the like statement is used?
What is db2 plan table?
List down the data types in the db2 database.
What are sqlcodes –803,-805, -811, -818,-904,-911,-913,-101, +100?
What are the uses of db2 optimizer?
Explain the benefits you can get from mainframe connect?
What is the difference between using bind () and rebind () methods of naming class?
What is db2 command?
What is db2 stogroup?
What is cloudant database?
What is alias in db2?