<?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: Tool to search a library of SAS egp files in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tool-to-search-a-library-of-SAS-egp-files/m-p/786197#M40000</link>
    <description>&lt;P&gt;Thanks Alan. I'm not the OP for this question, but appreciate the offer!&lt;/P&gt;</description>
    <pubDate>Wed, 15 Dec 2021 15:49:24 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2021-12-15T15:49:24Z</dc:date>
    <item>
      <title>Tool to search a library of SAS egp files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tool-to-search-a-library-of-SAS-egp-files/m-p/786169#M39989</link>
      <description>&lt;P&gt;Does anyone know of a tool that I can run to search for specific tables or data columns being used in an egp file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 13:54:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tool-to-search-a-library-of-SAS-egp-files/m-p/786169#M39989</guid>
      <dc:creator>Kayellen61</dc:creator>
      <dc:date>2021-12-15T13:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Tool to search a library of SAS egp files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tool-to-search-a-library-of-SAS-egp-files/m-p/786173#M39990</link>
      <description>&lt;P&gt;You can try using &lt;A href="https://blogs.sas.com/content/sasdummy/2013/01/25/egp-search-tool2/" target="_self"&gt;this "unofficial" tool that I built a while ago&lt;/A&gt;. Lots of folks have had success with it.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 14:10:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tool-to-search-a-library-of-SAS-egp-files/m-p/786173#M39990</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2021-12-15T14:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Tool to search a library of SAS egp files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tool-to-search-a-library-of-SAS-egp-files/m-p/786174#M39991</link>
      <description>&lt;P&gt;Hello for some reason, I was not able to download the version for SAS EG 8.1.&amp;nbsp; The link did nothing.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 14:14:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tool-to-search-a-library-of-SAS-egp-files/m-p/786174#M39991</guid>
      <dc:creator>Kayellen61</dc:creator>
      <dc:date>2021-12-15T14:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Tool to search a library of SAS egp files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tool-to-search-a-library-of-SAS-egp-files/m-p/786177#M39992</link>
      <description>&lt;P&gt;Direct link:&amp;nbsp;&lt;A href="http://support.sas.com/documentation/onlinedoc/guide/blog/EGPSearcherTool.zip" target="_blank"&gt;http://support.sas.com/documentation/onlinedoc/guide/blog/EGPSearcherTool.zip&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But unfortunately there is not a version specifically for EG 8.1 -- we have versions for 7.x and 8.2/8.3.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 14:20:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tool-to-search-a-library-of-SAS-egp-files/m-p/786177#M39992</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2021-12-15T14:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Tool to search a library of SAS egp files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tool-to-search-a-library-of-SAS-egp-files/m-p/786179#M39993</link>
      <description>&lt;P&gt;Is there another way for me to receive this tool?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 14:29:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tool-to-search-a-library-of-SAS-egp-files/m-p/786179#M39993</guid>
      <dc:creator>Kayellen61</dc:creator>
      <dc:date>2021-12-15T14:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Tool to search a library of SAS egp files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tool-to-search-a-library-of-SAS-egp-files/m-p/786181#M39994</link>
      <description>&lt;P&gt;I fixed the link in the blog. But as I said, it won't address the specific version of SAS Enterprise Guide 8.1, which has been updated for a long time to 8.2/8.3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As an alternative &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Doing-More-with-SAS-Enterprise-Guide-Automation/ta-p/417832" target="_self"&gt;you could use SAS Enterprise Guide automation&lt;/A&gt; -- via scripts -- to export and examine much of the content in EGP files.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 14:40:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tool-to-search-a-library-of-SAS-egp-files/m-p/786181#M39994</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2021-12-15T14:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Tool to search a library of SAS egp files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tool-to-search-a-library-of-SAS-egp-files/m-p/786183#M39995</link>
      <description>&lt;P&gt;Thank you for your quick response.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 14:45:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tool-to-search-a-library-of-SAS-egp-files/m-p/786183#M39995</guid>
      <dc:creator>Kayellen61</dc:creator>
      <dc:date>2021-12-15T14:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Tool to search a library of SAS egp files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tool-to-search-a-library-of-SAS-egp-files/m-p/786184#M39996</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This might not help, but I think needs like this are a great reason to store .sas code outside of .egp files (and link to them from EG process flows).&amp;nbsp; To my mind, EG became a much better tool for developers when it added that option.&amp;nbsp; Storing code outside of EG gives you the ability to execute it from other SAS sessions / environments, and also search code using any text search tools.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Too approach this problem, I might be tempted to script a process that would extract all the code from EG projects and dump it to .sas files as a first step.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 14:56:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tool-to-search-a-library-of-SAS-egp-files/m-p/786184#M39996</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2021-12-15T14:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Tool to search a library of SAS egp files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tool-to-search-a-library-of-SAS-egp-files/m-p/786185#M39997</link>
      <description>&lt;P&gt;Good advice&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19879"&gt;@Quentin&lt;/a&gt;&amp;nbsp;-- and to &lt;A href="https://github.com/cjdinger/sas-eg-automation" target="_self"&gt;get you started I have several scripts on GitHub&lt;/A&gt; -- in PowerShell or VBScript.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 15:01:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tool-to-search-a-library-of-SAS-egp-files/m-p/786185#M39997</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2021-12-15T15:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Tool to search a library of SAS egp files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tool-to-search-a-library-of-SAS-egp-files/m-p/786194#M39999</link>
      <description>&lt;P&gt;I have C# code to work with EG files and do similar processes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ping me offline Quentin if you need help. I am busy until after the holidays but can look at it after new years.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 15:28:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tool-to-search-a-library-of-SAS-egp-files/m-p/786194#M39999</guid>
      <dc:creator>AlanC</dc:creator>
      <dc:date>2021-12-15T15:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Tool to search a library of SAS egp files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tool-to-search-a-library-of-SAS-egp-files/m-p/786197#M40000</link>
      <description>&lt;P&gt;Thanks Alan. I'm not the OP for this question, but appreciate the offer!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 15:49:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tool-to-search-a-library-of-SAS-egp-files/m-p/786197#M40000</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2021-12-15T15:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Tool to search a library of SAS egp files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tool-to-search-a-library-of-SAS-egp-files/m-p/786227#M40001</link>
      <description>&lt;P&gt;I was responding to your mention of writing a script: I should have made that clear.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ultimately, you need to open the egp XML, get the elements, find the one with SAS code, and extract it. i am pretty sure I have that already. the OP question regarding the datasets should also be discoverable&amp;nbsp;in a similar manner.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 19:35:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tool-to-search-a-library-of-SAS-egp-files/m-p/786227#M40001</guid>
      <dc:creator>AlanC</dc:creator>
      <dc:date>2021-12-15T19:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Tool to search a library of SAS egp files</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tool-to-search-a-library-of-SAS-egp-files/m-p/786233#M40002</link>
      <description>&lt;P&gt;I would use SAS Packages for storing and sharing my SAS code (&lt;A href="https://github.com/yabwon/SAS_PACKAGES" target="_blank"&gt;https://github.com/yabwon/SAS_PACKAGES&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other thing, wouldn't a macro like one below solve the issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro getSASfilesFromEGP(
  path
 ,libOut
);
%local inZIP inF outF;
%let inZIP = z%sysfunc(datetime(),hex7.);
%let   inF = i%sysfunc(datetime(),hex7.);
%let  outF = o%sysfunc(datetime(),hex7.);
data _null_;
  rc0 = filename("&amp;amp;inZIP.", "&amp;amp;path.", "ZIP", "lrecl=1 recfm=n");
  did = dopen("&amp;amp;inZIP.");

  did = dopen("&amp;amp;inZIP.");
  if not did then
    do;
      put "ERROR- Aborting.";
      stop;
    end;

  do i=1 to dnum(did);
    file = dread(did, i);

    if upcase(scan(file,-1,".")) ne "SAS" then continue;

    rc1 = filename("&amp;amp;inF.", "&amp;amp;path.", "ZIP", "member='" !! strip(file) !! "' lrecl=1 recfm=n");

    rc2 = filename("&amp;amp;outF.", catx("/", dequote(symget("libOut")), translate(file,"_","/")), "DISK", "lrecl=1 recfm=n");
    rc3 = fcopy("&amp;amp;inF.", "&amp;amp;outF.");

    if ^fexist("&amp;amp;outF.") then put "WARNING: UnZIP failed.";
    put i= file=;
    put (rc:) (=);

    rcY = filename("&amp;amp;inF.");
    rcZ = filename("&amp;amp;outF.");
  end;

  did = dclose(did);
run;

%mend getSASfilesFromEGP;

%getSASfilesFromEGP(
  C:\Users\bart\Desktop\Project.egp
 ,C:\Users\bart\Desktop\TEST123
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 20:34:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tool-to-search-a-library-of-SAS-egp-files/m-p/786233#M40002</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2021-12-15T20:34:33Z</dc:date>
    </item>
  </channel>
</rss>

