<?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: SAS task scheduler in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-task-scheduler/m-p/263106#M51483</link>
    <description>&lt;P&gt;Try testing your SAS command by running:&amp;nbsp;&lt;SPAN&gt;"K:\Program Files\SAS\SASFoundation\9.4\sas.exe" from the Windows command prompt.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It should open a SAS Windows System session (program editor, Log, output etc).&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Apr 2016 08:00:04 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2016-04-12T08:00:04Z</dc:date>
    <item>
      <title>SAS task scheduler</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-task-scheduler/m-p/262940#M51436</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am SAS learner, so please help me on below issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am scheduling one job in SAS.&amp;nbsp;Please suggest where I am doing mistake.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 1:- Create a batch file with below code&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"K:\Program Files\SAS\SASFoundation\9.4\sas.exe" –SYSIN&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"L:\SASCode\sasprog.sas"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my SAS program which is shared in L drive&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname ACB1 'L:\SASCode';&lt;BR /&gt;libname mydblib2 oracle user=Scott password=A12345 path=TST1 schema=CAMP;&lt;BR /&gt;data ACB1.print_profile ;&lt;BR /&gt;keep prod_id pabbr individual_id last_order_dt last_role LAST_ORDER_MEDIUM;&lt;BR /&gt;merge mydblib2.pub_prod (in=a)&lt;BR /&gt;mydblib2.product (in=b);&lt;BR /&gt;by prod_id;&lt;BR /&gt;if (a and b) and pub_status='A';&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;after this I am scheduling .bat file in Task scheduler but when it execute automatciaaly it open the command prompt window and also SAS universell viewer but did not execute the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please suggest&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 15:39:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-task-scheduler/m-p/262940#M51436</guid>
      <dc:creator>CG1</dc:creator>
      <dc:date>2016-04-11T15:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: SAS task scheduler</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-task-scheduler/m-p/263106#M51483</link>
      <description>&lt;P&gt;Try testing your SAS command by running:&amp;nbsp;&lt;SPAN&gt;"K:\Program Files\SAS\SASFoundation\9.4\sas.exe" from the Windows command prompt.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It should open a SAS Windows System session (program editor, Log, output etc).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 08:00:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-task-scheduler/m-p/263106#M51483</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-04-12T08:00:04Z</dc:date>
    </item>
  </channel>
</rss>

