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.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.