<?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: Is there a way to run a .sas file in the background? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Is-there-a-way-to-run-a-sas-file-in-the-background/m-p/619055#M19323</link>
    <description>&lt;P&gt;The sas command cannot be found at this time. Is there another way in this case ??&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jan 2020 07:08:08 GMT</pubDate>
    <dc:creator>gugukaka</dc:creator>
    <dc:date>2020-01-22T07:08:08Z</dc:date>
    <item>
      <title>Is there a way to run a .sas file in the background?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Is-there-a-way-to-run-a-sas-file-in-the-background/m-p/619039#M19320</link>
      <description>&lt;P&gt;Is there a way to run a .sas file in the background even when SAS EG is shut down and the PC is turned off? I'm currently looking for a way to do it on Linux.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 05:43:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Is-there-a-way-to-run-a-sas-file-in-the-background/m-p/619039#M19320</guid>
      <dc:creator>gugukaka</dc:creator>
      <dc:date>2020-01-22T05:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to run a .sas file in the background?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Is-there-a-way-to-run-a-sas-file-in-the-background/m-p/619043#M19321</link>
      <description>&lt;P&gt;Yes, you run SAS in batch mode on a SAS server: &lt;A href="https://documentation.sas.com/?docsetId=hostunx&amp;amp;docsetTarget=n0x9esc5c95qg4n1wogx5u2k7354.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=hostunx&amp;amp;docsetTarget=n0x9esc5c95qg4n1wogx5u2k7354.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The easiest way to do this is via a scheduling tool. Often this can be done using SAS Management Console which contains a Schedule Manager for setting up, running and scheduling SAS batch jobs: &lt;A href="https://documentation.sas.com/?docsetId=scheduleug&amp;amp;docsetTarget=p1st3swwtt231jn1ramd8tsx9ijw.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=scheduleug&amp;amp;docsetTarget=p1st3swwtt231jn1ramd8tsx9ijw.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 06:03:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Is-there-a-way-to-run-a-sas-file-in-the-background/m-p/619043#M19321</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-01-22T06:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to run a .sas file in the background?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Is-there-a-way-to-run-a-sas-file-in-the-background/m-p/619055#M19323</link>
      <description>&lt;P&gt;The sas command cannot be found at this time. Is there another way in this case ??&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 07:08:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Is-there-a-way-to-run-a-sas-file-in-the-background/m-p/619055#M19323</guid>
      <dc:creator>gugukaka</dc:creator>
      <dc:date>2020-01-22T07:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to run a .sas file in the background?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Is-there-a-way-to-run-a-sas-file-in-the-background/m-p/619062#M19325</link>
      <description>&lt;P&gt;Only if you are working with SAS on a remote server.&lt;/P&gt;
&lt;P&gt;Make your code batch-runnable (direct exports instead of such done through the EG wizard, for one), and run it with the server's sasbatch.sh at the time of your choosing. If your server is included in a wider scheduling solution, use that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the next thing we need to know is your SAS setup. Number of tiers, operating systems, ...&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 10:15:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Is-there-a-way-to-run-a-sas-file-in-the-background/m-p/619062#M19325</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-01-22T10:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to run a .sas file in the background?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Is-there-a-way-to-run-a-sas-file-in-the-background/m-p/619069#M19328</link>
      <description>&lt;P&gt;On Linux, you can schedule a Cron and call you SAS using the SAS executable and YourProgram File as follows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/u01/dev01sas/SAS9_4_HOME/SASFoundation/9.4&lt;/STRONG&gt;/bin/sas_u8 &lt;STRONG&gt;YourProgram&lt;/STRONG&gt;.sas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is an example how to call a SAS program. This can be scheduled to run on back ground. Or you can call&amp;nbsp; the command from a shell command window.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let us know if it helped.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 09:20:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Is-there-a-way-to-run-a-sas-file-in-the-background/m-p/619069#M19328</guid>
      <dc:creator>Satish_Parida</dc:creator>
      <dc:date>2020-01-22T09:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to run a .sas file in the background?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Is-there-a-way-to-run-a-sas-file-in-the-background/m-p/619411#M19385</link>
      <description>&lt;P&gt;Please post what you actually typed in at the linux command line. On Unix typing ./sas instead of just sas will often work.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 05:29:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Is-there-a-way-to-run-a-sas-file-in-the-background/m-p/619411#M19385</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-01-23T05:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to run a .sas file in the background?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Is-there-a-way-to-run-a-sas-file-in-the-background/m-p/619417#M19390</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/297101"&gt;@gugukaka&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;The sas command cannot be found at this time. Is there another way in this case ??&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you get a message like&lt;/P&gt;
&lt;PRE&gt;/usr/bin/bash: sas:  not found.&lt;/PRE&gt;
&lt;P&gt;this means that the path to the SAS executable is not in your PATH environment variable.&lt;/P&gt;
&lt;P&gt;If you have a BI Server setup (EG connects to SASApp or similar), then it's best to use&lt;/P&gt;
&lt;PRE&gt;/sasconf/Lev1/SASApp/BatchServer/sasbatch.sh&lt;/PRE&gt;
&lt;P&gt;to run your codes, as this will provide the same environment that your code uses in EG. Replace the first part (/sasconf) with the absolute (starts with /) path to your SAS configuration tree.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 06:47:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Is-there-a-way-to-run-a-sas-file-in-the-background/m-p/619417#M19390</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-01-23T06:47:52Z</dc:date>
    </item>
  </channel>
</rss>

