Find which program calls the COPY?
Find which program calls the COPY?
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,
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,
- enrico-sorichetti
- Global Moderator

- Posts: 855
- Joined: Wed Sep 11, 2013 3:57 pm
Re: Find which program calls the COPY?
look at the ISPF members parts list option...
it will cross reference copybooks and subroutines/functions calls
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
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
- Robert Sample
- Global Moderator

- Posts: 1905
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Find which program calls the COPY?
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

- Posts: 588
- Joined: Wed Nov 20, 2013 11:53 am
- Location: Mars
Re: Find which program calls the COPY?
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?
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.
Ask your configuartion management people how/if this is done in your organization.
Hope this helps,
d
d
- Anuj Dhawan
- Founder
- Posts: 2838
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: Find which program calls the COPY?
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.
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.
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