Find which program calls the COPY?

OS/VS COBOL, COBOL II, Enterprise COBOL for z/OS. OpenCOBOL and OOCobol.
Rahul
Registered Member
Posts: 23
Joined: Thu Jan 23, 2014 9:06 am

Find which program calls the COPY?

Post by Rahul »

Hi,

We've a code that is copied into Cobol programs using: COPY COPYBOOK.. On a later stage, is there a way using which I can find out the name of the program that this code has been copied into?

One way is to use ISPF's SEARCH FOR feature (3.14) against source lib. Search for "COPYBOOK". But is there way using control blocks itself?

Thanks,
User avatar
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 855
Joined: Wed Sep 11, 2013 3:57 pm

Re: Find which program calls the COPY?

Post by enrico-sorichetti »

look at the ISPF members parts list option...
it will cross reference copybooks and subroutines/functions calls
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1905
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa

Re: Find which program calls the COPY?

Post by Robert Sample »

You cannot find programs using a copy book using control blocks. Control blocks are system areas that contain task-related data; as such the control blocks would only be relevant when the program is being compiled, and only for the one program being compiled. The system would not be aware that 500 other programs use the same copy book as it is only compiling one program which uses that copy book.
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: Find which program calls the COPY?

Post by zprogrammer »

As Enrico suggested IIRC there is a similar option in SCLM too
zprogrammer
dick scherrer
Former Team Member
Posts: 62
Joined: Wed Aug 07, 2013 6:43 pm

Re: Find which program calls the COPY?

Post by dick scherrer »

What you ask about is often called Impact Analysis. Different organizations have different ways to address this.

Ask your configuartion management people how/if this is done in your organization.
Hope this helps,
d
Rahul
Registered Member
Posts: 23
Joined: Thu Jan 23, 2014 9:06 am

Re: Find which program calls the COPY?

Post by Rahul »

Thanks guys. We used the changeman to do this.
User avatar
Anuj Dhawan
Founder
Posts: 2838
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:

Re: Find which program calls the COPY?

Post by Anuj Dhawan »

Thanks for the feedback, appreciate that. :)
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Post Reply Previous topicNext topic

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.”