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

Who uses db2?

0 Answers  


What are foreign keys in db2?

0 Answers  


What is the COBOL picture clause of the following DB2 data types: DATE, TIME, TIMESTAMP?

3 Answers  


What is concurrency?

0 Answers  


WHAT IS MEANT BY COMMIT COMMAND?

7 Answers   Wipro,






How do you run JCL in cobol program

1 Answers   IBM, Syntel,


What is copy book?

1 Answers   Thomson Reuters,


in my project..TEST is db2 8.1 version In PROD it is 7.1 if i do REORG in TEST.. can I use the same REORG jcl with out modification in PROD region (this is DB2 8.1 )? if not, what modification i need to do in my REORG control card?

0 Answers  


How do I change the column size in db2?

0 Answers  


What is a correlated sub query?

2 Answers  


what is db2 restart?

0 Answers  


What kind of database is db2?

0 Answers  


Categories