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 is Copybook and Copylib

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Mayos

New User


Joined: 11 Apr 2005
Posts: 16

PostPosted: Thu Apr 14, 2005 3:46 pm    Post subject: What is Copybook and 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

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Thu Apr 14, 2005 4:16 pm    Post subject: Re: Copybook and Copylib
Reply with quote

They aren't. Those are terms relating to COBOL programs.
Back to top
View user's profile Send private message
andycool

New User


Joined: 12 Apr 2005
Posts: 64

PostPosted: Mon Apr 18, 2005 10:22 am    Post subject:
Reply with quote

Hi Mayos,

1. A COPYBOOK can contain some portion of your COBOL program.
For instance you have two programs: prog1 and prog2.
Both of these use a same set of working storage variables. Here, instead of using them twice in both programs, you can make a COPYBOOK ie another pgm/dataset letz say "progcpy", wch will only contain these working storage variables and nothing else.
This is called a working storage cpybook. You can incluse this "progcpy" in both of your pgms by using the statement:

====prgcpy====
05 working_variable1
05 working_variable2
05 working_variable3
============
prog1
UNEXPANDED: - progcpy

prog2
UNEXPANDED: - progcpy

2. A COPYLIB is the one where, after compiling your programs, the copy of it is picked up by the CICS scrn.

...Regards
Back to top
View user's profile Send private message
Mayos

New User


Joined: 11 Apr 2005
Posts: 16

PostPosted: Mon Apr 18, 2005 4:37 pm    Post subject: Re: Copybook and Copylib
Reply with quote

Thank you so very much for your explanation. It is very helpful. I appreciate it. Many thanks.
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 -> JCL & VSAM 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