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

What is dbrm? When it will be created?

0 Answers  


What is the syntax for creating a table in the db2 database?

0 Answers  


Which one allows duplicate values Union or Union All ?

3 Answers  


Which is faster delete or truncate?

0 Answers  


ther r 2 tables OTTABLE & SALTABLE, add the otamt from OTTABLE to empsal of SALTABLE if eid is matched else add the unmatched from OTTABLE to SALTABLE

0 Answers  






What is database reorganization?

0 Answers  


How to get Top 10 Salaries from a Table

11 Answers   Accenture, HTC,


what is the Foreign key? explain?

2 Answers  


what is dynamic cursor?gives syntax for this?

1 Answers   TCS,


What is DYNSLT keyword? How do you perform selection using DYNSLT

1 Answers  


what is contained in the DB2 node lock file? A) data base names B) data base users names C) license keys D) server names

5 Answers   Accenture,


what is a trigger and types of triggers

3 Answers   HSBC,


Categories