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


Please Help Members By Posting Answers For Below Questions

What is cloudant database?

834


What is null indicator in cobol db2?

774


Which is faster delete or truncate?

868


What is commit in db2?

802


What are bind parameters in db2?

788


How to resolve deadlock issue

18985


What is the cobol picture clause of the db2 data types date, time, timestamp?

831


What are the two types of logging in the db2 database? Explain them.

787


What is a db2 cursor?

797


Which component is used to execute the sql statements?

829


What is coalesce in db2?

860


What is scrollable cursor in db2?

789


How would you find out the total number of rows in a db2 table?

779


Why cursor is used in db2?

760


How can you classify the locks in db2?

815