<?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: Need help with automating macros in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Need-help-with-automating-macros/m-p/87837#M18764</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you give me an example of two or three program calls? Are these SAS programs being called, or non-SAS programs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you say calling "several different programs at once", do you really mean "calling several different programs in sequence via one SAS program"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jun 2012 15:14:32 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2012-06-20T15:14:32Z</dc:date>
    <item>
      <title>Need help with automating macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-with-automating-macros/m-p/87834#M18761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I want to automate the following programs by adding them to my crontab to run daily.&lt;BR /&gt;Instead of adding in several entries for the different programs to my crontab, how do I create a macro that has all the program calls in it?&lt;BR /&gt;Also before running the program each day I want the macro to check if the previous days data ran successfully and if the log dependancy for today is met before kicking of the jobs.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Eg: Prog02may2012.sas can only run if the Prog01may2012.sas ran successfully. Also the dependancy "extract.log.ok" needs to be met before I run any programs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this makes sense.&lt;BR /&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 13:21:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-with-automating-macros/m-p/87834#M18761</guid>
      <dc:creator>Havi</dc:creator>
      <dc:date>2012-06-20T13:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with automating macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-with-automating-macros/m-p/87835#M18762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;
&lt;P&gt;how do I create a macro that has all the program calls in it?&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;This is very vague ... not clear at all why you want a Macro that has all program calls in it, when a program that doesn't have macros could also have all the program calls in them. Why do you need macros for this? What program calls are you referring to?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;Also before running the program each day I want the macro to check if the previous days data ran successfully and if the log dependancy for today is met before kicking of the jobs.&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;Each day, if the program runs successfully, write the date and status (could be simply a 1 for success and 0 for fail) to a SAS data set. Next day, check to make sure the data set has a 1 on the previous day.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 13:42:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-with-automating-macros/m-p/87835#M18762</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2012-06-20T13:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with automating macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-with-automating-macros/m-p/87836#M18763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It does not necesarily have to be a macro, just thought that it will be more efficient.&lt;/P&gt;&lt;P&gt;When i referred to program calls - I mean calling several different programs at once.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 15:11:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-with-automating-macros/m-p/87836#M18763</guid>
      <dc:creator>Havi</dc:creator>
      <dc:date>2012-06-20T15:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with automating macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-with-automating-macros/m-p/87837#M18764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you give me an example of two or three program calls? Are these SAS programs being called, or non-SAS programs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you say calling "several different programs at once", do you really mean "calling several different programs in sequence via one SAS program"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 15:14:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-with-automating-macros/m-p/87837#M18764</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2012-06-20T15:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with automating macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-with-automating-macros/m-p/87838#M18765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes that is what I mean.&lt;/P&gt;&lt;P&gt;Eg: I want to run extract.sas then run load.sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 15:18:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-with-automating-macros/m-p/87838#M18765</guid>
      <dc:creator>Havi</dc:creator>
      <dc:date>2012-06-20T15:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with automating macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-with-automating-macros/m-p/87839#M18766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No macros needed, if I understand you properly. You just need to use the %include command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%include "\\server\share\extract.sas";&lt;/P&gt;&lt;P&gt;%include "\\server\share\load.sas";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, you would use the exact path of these .sas files instead of \\server\share&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 15:22:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-with-automating-macros/m-p/87839#M18766</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2012-06-20T15:22:49Z</dc:date>
    </item>
  </channel>
</rss>

