<?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: Extracting a macro code from Catalog File in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Extracting-a-macro-code-from-Catalog-File/m-p/634980#M188495</link>
    <description>&lt;P&gt;Do not use a PDF to add a photo.&lt;/P&gt;
&lt;P&gt;There is a camera icon just for that usage.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Mar 2020 08:53:22 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2020-03-26T08:53:22Z</dc:date>
    <item>
      <title>Extracting a macro code from Catalog File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extracting-a-macro-code-from-Catalog-File/m-p/634945#M188483</link>
      <description>&lt;P&gt;We are migrating SAS code from windows to Unix operating system. One of the program is utilizing a catalog file which consists of 4 macros. Macros are not working due to change in operating system. Unfortunately, we are not able to find the source code for this catalog file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way we can read the source code of this catalog file macros or is there any way to create or convert them in order to make it work on unix operating system.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 02:20:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extracting-a-macro-code-from-Catalog-File/m-p/634945#M188483</guid>
      <dc:creator>hemasai98</dc:creator>
      <dc:date>2020-03-26T02:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting a macro code from Catalog File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extracting-a-macro-code-from-Catalog-File/m-p/634946#M188484</link>
      <description>&lt;P&gt;Try the %COPY statement.&amp;nbsp;&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=mcrolref&amp;amp;docsetTarget=p0oltlodtnemugn109vxxa76sref.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=mcrolref&amp;amp;docsetTarget=p0oltlodtnemugn109vxxa76sref.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Note that this requires that the macro was compiled using the / source option on the %MACRO statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why do you have macros stored in catalog instead of as text in program files?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 02:37:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extracting-a-macro-code-from-Catalog-File/m-p/634946#M188484</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-03-26T02:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting a macro code from Catalog File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extracting-a-macro-code-from-Catalog-File/m-p/634950#M188485</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/85012"&gt;@hemasai98&lt;/a&gt;&amp;nbsp; - As far as I'm aware a MACRO catalog is a compiled macro and you can't extract the source code. Even if you could you would need to do it under Windows in your source SAS version, not your migrated one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Correction:&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;'s suggestion might work but it must be run on your Windows SAS.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 02:48:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extracting-a-macro-code-from-Catalog-File/m-p/634950#M188485</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-03-26T02:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting a macro code from Catalog File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extracting-a-macro-code-from-Catalog-File/m-p/634980#M188495</link>
      <description>&lt;P&gt;Do not use a PDF to add a photo.&lt;/P&gt;
&lt;P&gt;There is a camera icon just for that usage.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 08:53:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extracting-a-macro-code-from-Catalog-File/m-p/634980#M188495</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-03-26T08:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting a macro code from Catalog File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extracting-a-macro-code-from-Catalog-File/m-p/634992#M188504</link>
      <description>&lt;P&gt;See Maxim 26, but you already know what it says, out of dire experience.&lt;/P&gt;
&lt;P&gt;You can only extract the code with the &lt;EM&gt;original&lt;/EM&gt; SAS version on Windows&amp;nbsp;&lt;EM&gt;if&lt;/EM&gt; the macros were stored with the source option. If not, your best bet is to re-engineer them.&lt;/P&gt;
&lt;P&gt;And NEVER AGAIN store macros in catalogs. Basically, avoid all use of catalogs except for temporary means.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 09:30:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extracting-a-macro-code-from-Catalog-File/m-p/634992#M188504</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-03-26T09:30:16Z</dc:date>
    </item>
  </channel>
</rss>

