Can we declare DB2 HOST variable in COBOL COPY book?

Answers were Sorted based on User's Feedback



Can we declare DB2 HOST variable in COBOL COPY book?..

Answer / a.roselin

No, We cant declare it in Cobol copy book, why because,
Copy book is not expand during the precompilation, But if
you declare it in DCLGEN, it will be expanded during
precompilation.

Is This Answer Correct ?    6 Yes 8 No

Can we declare DB2 HOST variable in COBOL COPY book?..

Answer / arup

the below code is working fine....
COPY DSBPRDDS.

DSBPRDDS is a DCLGEN.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More DB2 Interview Questions

How do you eliminate duplicate values in db2?

0 Answers  


Explain package in db2 and its advantages?

0 Answers  


What are the disadvantages of using VARCHAR?

3 Answers  


Is the primary key a clustered index?

0 Answers  


What is db2 optimizer?

0 Answers  


Consider that a package is bound into 2 different collections and the PKLIST option specifies both the collections. If the collection id is not specified in the program while executing the SQL query, then when the DB2 system will search the package list, which collection will it pick up or will it give an error/abend?

1 Answers  


What is a lock?

1 Answers  


when we are trying to update db2 rows. if the program abends . how we will know that the last successful update row was

5 Answers   IBM,


Update command

1 Answers  


When is the results table for the query in a DECLARE CURSOR statement created?

5 Answers  


What is usage pointer in cobol?

3 Answers   IBM,


What is the connection string to connect to the DB2 Database ?

0 Answers   MCN Solutions,


Categories