12-08-2017 06:47 AM
Do you guys have any idea, on how to find all programs that use a certain libname ?
This should look for it in all folders and paths.
To be more specific, maybe use shell commands to do this, but my idea is to put libname's names in a macro
and do this multiple times for every libname in our server.
Maybe create a list with libname and programs beside.
Do you guys have any idea how to do this ?
Thanks in Advance
12-08-2017 06:54 AM
Which OS are you using? If Windows then:
findstr /n /i /c:"abc" *
Assuming abc is the libname. Other searches here:
However that being said, the question here is why. You should have one of the following:
A fixed set of libnames started at the session
A fixed structure which all code performs to
Documentation on programs which do not conform to a structure
So the question is why you need to go through this process, as a) it will take a lot of time, not just getting the list, but parsing it and checking for all potentials, but b) might not even be right, I mean you could have other references, filerefs etc. setup for this.
12-08-2017 08:34 AM
Simple answer, you can't.
A SAS program can be stored anywhere, and it could be submitted from anywhere within your environment restrictions (which usually could still be quite vast).
Agree with @RW9, why? Lineage I presume.
You can do Lineage with any stuff stuff that is aligned with your system architectural, design and documentation (meta data etc). All other programs should not be of the system owners concern.