<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Find all programs that use a certain libname in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Find-all-programs-that-use-a-certain-libname/m-p/419532#M103170</link>
    <description>&lt;P&gt;Which OS are you using?&amp;nbsp; If Windows then:&lt;/P&gt;
&lt;PRE&gt;findstr /n /i /c:"abc" *&lt;/PRE&gt;
&lt;P&gt;Assuming abc is the libname.&amp;nbsp; Other searches here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.computerhope.com/findstr.htm" target="_blank"&gt;https://www.computerhope.com/findstr.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However that being said, the question here is why.&amp;nbsp; You should have one of the following:&lt;/P&gt;
&lt;P&gt;A fixed set of libnames started at the session&lt;/P&gt;
&lt;P&gt;A fixed structure which all code performs to&lt;/P&gt;
&lt;P&gt;Documentation on programs which do not conform to a structure&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Dec 2017 11:54:40 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-12-08T11:54:40Z</dc:date>
    <item>
      <title>Find all programs that use a certain libname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Find-all-programs-that-use-a-certain-libname/m-p/419530#M103169</link>
      <description>&lt;P&gt;Hi experts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you guys have any idea, on how to find all programs that use a certain libname ?&lt;/P&gt;
&lt;P&gt;This should look for it in all folders and paths.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To be more specific, maybe use shell commands to do this, but my idea is to put libname's names in a macro&lt;/P&gt;
&lt;P&gt;and do this multiple times for every libname in our server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe create a list with libname and programs beside.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you guys have any idea how to do this ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in Advance&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 11:47:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Find-all-programs-that-use-a-certain-libname/m-p/419530#M103169</guid>
      <dc:creator>DartRodrigo</dc:creator>
      <dc:date>2017-12-08T11:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Find all programs that use a certain libname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Find-all-programs-that-use-a-certain-libname/m-p/419532#M103170</link>
      <description>&lt;P&gt;Which OS are you using?&amp;nbsp; If Windows then:&lt;/P&gt;
&lt;PRE&gt;findstr /n /i /c:"abc" *&lt;/PRE&gt;
&lt;P&gt;Assuming abc is the libname.&amp;nbsp; Other searches here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.computerhope.com/findstr.htm" target="_blank"&gt;https://www.computerhope.com/findstr.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However that being said, the question here is why.&amp;nbsp; You should have one of the following:&lt;/P&gt;
&lt;P&gt;A fixed set of libnames started at the session&lt;/P&gt;
&lt;P&gt;A fixed structure which all code performs to&lt;/P&gt;
&lt;P&gt;Documentation on programs which do not conform to a structure&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 11:54:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Find-all-programs-that-use-a-certain-libname/m-p/419532#M103170</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-12-08T11:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Find all programs that use a certain libname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Find-all-programs-that-use-a-certain-libname/m-p/419544#M103173</link>
      <description>&lt;P&gt;I'm using batch shell (Unix).&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 12:41:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Find-all-programs-that-use-a-certain-libname/m-p/419544#M103173</guid>
      <dc:creator>DartRodrigo</dc:creator>
      <dc:date>2017-12-08T12:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Find all programs that use a certain libname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Find-all-programs-that-use-a-certain-libname/m-p/419548#M103176</link>
      <description>&lt;P&gt;Simple answer, you can't.&lt;/P&gt;
&lt;P&gt;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).&lt;/P&gt;
&lt;P&gt;Agree with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt;, why? Lineage I presume.&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 13:34:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Find-all-programs-that-use-a-certain-libname/m-p/419548#M103176</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-12-08T13:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Find all programs that use a certain libname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Find-all-programs-that-use-a-certain-libname/m-p/419550#M103177</link>
      <description>&lt;P&gt;A quick google...&lt;/P&gt;
&lt;P&gt;&lt;A href="https://unix.stackexchange.com/questions/7383/finding-a-substring-in-files-across-subdirectories-with-a-single-built-in-comman" target="_blank"&gt;https://unix.stackexchange.com/questions/7383/finding-a-substring-in-files-across-subdirectories-with-a-single-built-in-comman&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 13:45:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Find-all-programs-that-use-a-certain-libname/m-p/419550#M103177</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-12-08T13:45:51Z</dc:date>
    </item>
  </channel>
</rss>

