<?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: How to execute a sas macro under a unix server in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-execute-a-sas-macro-under-a-unix-server/m-p/704879#M37848</link>
    <description>&lt;P&gt;Not sure why you need a shell script.&amp;nbsp; To run a program from the command line first save the SAS code into a file. It is normal to use .sas as the extension on the file.&amp;nbsp; Then from the command prompt you type the command sas (or whatever command your systems team created to run sas) followed by the name of the file.&amp;nbsp; If you don't include the .sas extension SAS will add it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;sas myprogram&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The result will be a file named myprogram.log and possible a file named myprogram.lst written in the current directory.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Dec 2020 22:26:03 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2020-12-09T22:26:03Z</dc:date>
    <item>
      <title>How to execute a sas macro under a unix server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-execute-a-sas-macro-under-a-unix-server/m-p/704875#M37846</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to know how to call a macro on&amp;nbsp; a Unix server (see the macro below)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro Transferbookibnrtodev(dev=,cie=,yyyy=,mm=);&lt;/P&gt;
&lt;P&gt;libname source spde "/dwh_actuariat/sasdata/sas2020/&amp;amp;cie.";&lt;BR /&gt;libname dest spde "/dwh_actuariat/sasdata/sas2020&amp;amp;dev./&amp;amp;cie.";&lt;/P&gt;
&lt;P&gt;proc copy in=source out=dest;&lt;/P&gt;
&lt;P&gt;select &amp;amp;cie._bookibnr_&amp;amp;yyyy.&amp;amp;mm.;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If we need to make a ksh file , please provide an example&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;libname source clear;&lt;BR /&gt;libname dest clear;&lt;/P&gt;
&lt;P&gt;/*Example of call: %Transferbookibnrtodev(dev=5,cie=golf ,yyyy=2020,mm=10);*/&lt;/P&gt;
&lt;P&gt;%mend Transferbookibnrtodev;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 22:08:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-execute-a-sas-macro-under-a-unix-server/m-p/704875#M37846</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2020-12-09T22:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute a sas macro under a unix server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-execute-a-sas-macro-under-a-unix-server/m-p/704878#M37847</link>
      <description>&lt;P&gt;SAS macros run the same way regardless of operating system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You define the macro first then call it:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro MyMacro;

&amp;lt; statements&amp;gt;

%mend MyMacro;

%MyMacro;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Dec 2020 22:18:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-execute-a-sas-macro-under-a-unix-server/m-p/704878#M37847</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-12-09T22:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute a sas macro under a unix server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-execute-a-sas-macro-under-a-unix-server/m-p/704879#M37848</link>
      <description>&lt;P&gt;Not sure why you need a shell script.&amp;nbsp; To run a program from the command line first save the SAS code into a file. It is normal to use .sas as the extension on the file.&amp;nbsp; Then from the command prompt you type the command sas (or whatever command your systems team created to run sas) followed by the name of the file.&amp;nbsp; If you don't include the .sas extension SAS will add it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;sas myprogram&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The result will be a file named myprogram.log and possible a file named myprogram.lst written in the current directory.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 22:26:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-execute-a-sas-macro-under-a-unix-server/m-p/704879#M37848</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-12-09T22:26:03Z</dc:date>
    </item>
  </channel>
</rss>

