What is copy book?



What is copy book?..

Answer / rana

Copybook is the Facility provided to programmer for putting
the variables or COBOL Code which is common to many
programs. This helps programmer to optimize the code and
able to write the error free code.

Copybook gets included into the program at the time of
compilation from the PDS.

Is This Answer Correct ?    12 Yes 1 No

Post New Answer

More DB2 Interview Questions

what are the max. & min. no. of partitions allowed in a partition tablespace?

2 Answers   IBM,


what is difference between Static call and Dynamic call? How does it function?

1 Answers   Syntel,


What is the SQL Communications Area and what are some of its key fields?

1 Answers  


What is the meaning of -805 SQL return code?

3 Answers  


What do the initials DDL and DML stand for and what is their meaning?

2 Answers  






COBOL PRECOMPILER ERROR: "XXXXXX" (TABLE) PREVIOUSLY DECLARED OR REFERENCED DCLGEN VARIABLES GETS IMPORTED TWICE FOR ONLY ONE EXEC SQL STATEMENT. WHAT COULD BE THE PROBLEM?

1 Answers  


How is deadlock resolved?

0 Answers  


In a Cobol-DB2 program, I am fetching rows from 4 tables using cursor and then based on the a field present in that table, It processes the information accordingly..for example stat-c is one digit field..if stat-c is 'D' then the a row is deleted from table and written those details in to a file. If the stat-c is 'U' then a row is updated (hardcoded what to update)in a table and written those details in to a file. If the stat-c is 'I' then a row is inserted in a table and written those details in to two files. The issue is i have to include the intermediate commits. When an abend occurs, due to commit statement db2 tables will be saved, But there will be lose of file contents. When we resubmitting the job associated with this program there will be insert ,update and delete anomolies to avoid that what measures could be taken?. The intermediate commit is nothing but issuing commit after massive inserts, updates and deletes(sum of 500actions)

2 Answers  


select distinct(empid),distinct(dept),name from EMP will the above query work?

2 Answers   CTS,


What is the purpose of the DSNC transaction ?

1 Answers  


What is a cursor and what is its function?

2 Answers  


What is copy book?

1 Answers   Thomson Reuters,


Categories