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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
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
References
PostPosted: Thu Apr 14, 2005 3:46 pm    Post subject: Re: What is Copybook and Copylib Reply with quote

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3081
Location: Charlotte,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

Active User


Joined: 12 Apr 2005
Posts: 65

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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1