Hi experts.
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
Which OS are you using? If Windows then:
findstr /n /i /c:"abc" *
Assuming abc is the libname. Other searches here:
https://www.computerhope.com/findstr.htm
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.
I'm using batch shell (Unix).
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.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.