View previous topic :: View next topic
|
Author |
Message |
Mayos
New User
Joined: 11 Apr 2005 Posts: 16
|
|
|
|
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 |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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 |
|
|
Mayos
New User
Joined: 11 Apr 2005 Posts: 16
|
|
|
|
Thank you very much for your explanation. It was really helpful. Thanks again. |
|
Back to top |
|
|
|