Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
What a Copybook is and what is a Copylib

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
Mayos

New User


Joined: 11 Apr 2005
Posts: 16

PostPosted: Thu Apr 14, 2005 4:45 pm    Post subject: What a Copybook is and what is a Copylib
Reply with quote

Hello,

Just want to know what a copybook is and what is a copylib and when it is used in the jcl.

Many thanks.
Back to top
View user's profile Send private message
References
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1504

PostPosted: Fri Apr 15, 2005 3:41 am    Post subject:
Reply with quote

Hi Mayos,

A copybook is a PDS member that contains valid COBOL stmts. These stmts will execute (or be interpreted by the Compiler - they can be data definition stmts, pgm code, FDs, etc. ) as if they were written individually in the code. You just have to code "COPY copybkname." on a line in the pgm and all the stmts in the copybook become part of the pgm.

The JCL copylib is the PDS where the copybook members reside.
Back to top
View user's profile Send private message
Mayos

New User


Joined: 11 Apr 2005
Posts: 16

PostPosted: Fri Apr 15, 2005 4:41 pm    Post subject: Re: Copybook and Copylib
Reply with quote

Thank you very much for your explanation. It was really helpful. Thanks again.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1