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

i have one file having 100 of records? i want to display it like 20 records in one column and 20 records in another column total 40 records per page ? how ?

2 Answers   EDS,


How to view db2 table structure?

0 Answers  


Is it possible to create an Instance in DB2 using DB2 Control Center ?

0 Answers   MCN Solutions,


How does db2 sample database connect?

0 Answers  


What are the 4 environments which can access DB2 ?

2 Answers  






Give a brief description of db2 isolation levels?

0 Answers  


What are the prerogatives?

0 Answers  


What is a precompiler?

2 Answers  


WHAT IS MEANT BY COMMIT COMMAND?

7 Answers   Wipro,


What is schema in db2?

0 Answers  


What is runstats utility in db2?

0 Answers  


Comment whether dclgen is mandatorily used. If not, then what is the point of using it?

0 Answers  


Categories