IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

What is copybook in detail and why we are using it


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
udaysinghsolanki

New User


Joined: 17 Aug 2006
Posts: 2

PostPosted: Sat Aug 19, 2006 5:37 pm
Reply with quote

hi guys,
i am new to the mainframe environment i am just learning it, so could anybody explain me what is copybook in detail and why we are using it.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Sat Aug 19, 2006 5:58 pm
Reply with quote

Copybook is part of code that is saved as a separate member. During compilation, this part of code is COPYed into the program's source.

For example: If you have a working storage definitions of a file, and this file is used in many programs, you might want to put its record definition in a copybook to keep all your programs consistent.

Another example: Very complex calculations that regards the business directly and are part of the business guidelines might be saved as copybooks to keep it as a one point of update.

O.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts Trying to change copybook in online c... CICS 4
No new posts Help to Filter File Manager Copybook ... DFSORT/ICETOOL 14
No new posts Need to add field to copybook, proble... COBOL Programming 14
No new posts Recompiling programs after a copybook... COBOL Programming 1
Search our Forums:

Back to Top