Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ 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 -> COBOL Programming
View previous topic :: :: View next topic  
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

mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copybook structure in Load module Vai123 COBOL Programming 7 Fri Sep 16, 2016 8:29 pm
No new posts Geneartion of COBOL copybook structre... murugan_mf COBOL Programming 3 Fri May 20, 2016 12:48 pm
No new posts View Copybook having COPY statement i... nkumar Compuware & Other Tools 6 Mon May 16, 2016 7:28 pm
No new posts JCL Utility in accordance to the copy... meetsupriyo JCL & VSAM 3 Tue Dec 08, 2015 8:46 pm
No new posts Convert a COBOL copybook spoorni All Other Mainframe Topics 0 Fri Aug 28, 2015 7:53 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us