<?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: Running SAS programs in batch Linux in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Running-SAS-programs-in-batch-Linux/m-p/622822#M18151</link>
    <description>&lt;P&gt;That picture you posted looks like a SAS log, so it would seem that you were able to run SAS.&lt;/P&gt;
&lt;P&gt;What is your question?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Feb 2020 18:53:34 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2020-02-06T18:53:34Z</dc:date>
    <item>
      <title>Running SAS programs in batch Linux</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Running-SAS-programs-in-batch-Linux/m-p/622685#M18142</link>
      <description>&lt;P&gt;Hi, folks,&lt;/P&gt;&lt;P&gt;I have a question I want to run a .sas in linux background. I understand the sentence is&lt;/P&gt;&lt;P&gt;/opt/sas/spre/home/SASFoundation/sas /path/code.sas -log /path/log.log&lt;/P&gt;&lt;P&gt;but when you run sas it doesn't give any promises or anything and when you enter /opt/sas/spre/home/SASFoundation/sas I see that it is a link to different scripts. Could you help me how or where to find the bin/sas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 12:33:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Running-SAS-programs-in-batch-Linux/m-p/622685#M18142</guid>
      <dc:creator>Peruano81</dc:creator>
      <dc:date>2020-02-06T12:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Running SAS programs in batch Linux</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Running-SAS-programs-in-batch-Linux/m-p/622686#M18143</link>
      <description>&lt;P&gt;Use this link to run SAS natively (only the installed binaries).&lt;/P&gt;
&lt;P&gt;If you want to run SAS in batch in such a way that you get the environment you are used to from SAS Studio or Enterprise Guide, use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/sasconf/Lev1/SASApp/BatchServer/sasbatch.sh&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;instead. sasconf is the path where your BI Server configuration tree is located.&lt;/P&gt;
&lt;P&gt;This script will read all metadata linked to the SASApp application server context.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 12:41:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Running-SAS-programs-in-batch-Linux/m-p/622686#M18143</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-02-06T12:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Running SAS programs in batch Linux</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Running-SAS-programs-in-batch-Linux/m-p/622729#M18149</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="06022020.JPG" style="width: 583px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35886iC7BBECC74BBB7199/image-size/large?v=v2&amp;amp;px=999" role="button" title="06022020.JPG" alt="06022020.JPG" /&gt;&lt;/span&gt;You could help me, it's as if I don't get the environment variables. Instead my .sas works in the graphic environment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 15:05:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Running-SAS-programs-in-batch-Linux/m-p/622729#M18149</guid>
      <dc:creator>Peruano81</dc:creator>
      <dc:date>2020-02-06T15:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Running SAS programs in batch Linux</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Running-SAS-programs-in-batch-Linux/m-p/622822#M18151</link>
      <description>&lt;P&gt;That picture you posted looks like a SAS log, so it would seem that you were able to run SAS.&lt;/P&gt;
&lt;P&gt;What is your question?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 18:53:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Running-SAS-programs-in-batch-Linux/m-p/622822#M18151</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-02-06T18:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Running SAS programs in batch Linux</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Running-SAS-programs-in-batch-Linux/m-p/622935#M18154</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292600"&gt;@Peruano81&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think this path should be good enough to run in background in linux -&amp;nbsp;&lt;SPAN&gt;/opt/sas/spre/home/SASFoundation/sas /path/code.sas -log /path/log.log. Just add nohup and &amp;amp; to run it in background. If you are looking for a more neat way, try wrapping the sas code in a shell script and invoke it background or schedule it using cron.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;since the path has 'spre' in it, I believe you are running this on a Viya platform and you won't have sasbatch.sh script installed.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Symlinks for 'sas' binary is SAS way of running sas on the selected encoding during configuration. You can go under .../bin/sas to find all the sas binaries with different encodings like sas_en, sas_dbcs etc. I don't think there is anything as '../bin/sas'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 03:55:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Running-SAS-programs-in-batch-Linux/m-p/622935#M18154</guid>
      <dc:creator>AnandVyas</dc:creator>
      <dc:date>2020-02-07T03:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Running SAS programs in batch Linux</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Running-SAS-programs-in-batch-Linux/m-p/622954#M18156</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/52993"&gt;@AnandVyas&lt;/a&gt; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's right &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/52993"&gt;@AnandVyas&lt;/a&gt; is sas viya 9.3, and I'm running as root, the following.&lt;/P&gt;&lt;P&gt;/opt/sas/spre/home/SASFoundation/sas /sasdata/storage/batch/code/801_load_inputData.sas -log /var/log/801_load_inputData.sas&lt;/P&gt;&lt;P&gt;But if you run it but it doesn't work, when you check the log it gives the indicated messages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="07022020.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35908i4B797E981BB6B44F/image-size/large?v=v2&amp;amp;px=999" role="button" title="07022020.JPG" alt="07022020.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This is the script, when you run it via GUI without problems the problem is to do it in shell backgound.&lt;/P&gt;&lt;P&gt;You could help me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;code /sasdata/storage/batch/code/801_load_inputData.sas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="07022020-2.JPG" style="width: 471px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35909i3EE8B33407C74699/image-size/large?v=v2&amp;amp;px=999" role="button" title="07022020-2.JPG" alt="07022020-2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 07:10:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Running-SAS-programs-in-batch-Linux/m-p/622954#M18156</guid>
      <dc:creator>Peruano81</dc:creator>
      <dc:date>2020-02-07T07:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Running SAS programs in batch Linux</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Running-SAS-programs-in-batch-Linux/m-p/622967#M18157</link>
      <description>&lt;P&gt;Never heard of SAS Viya version 9.3. Viya versions are 3.x -&amp;nbsp;&lt;A href="https://support.sas.com/en/software/sas-viya.html" target="_blank"&gt;https://support.sas.com/en/software/sas-viya.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you try the below command: -&amp;nbsp;&lt;SPAN&gt;/opt/sas/spre/home/SASFoundation/sas &lt;STRONG&gt;-&lt;U&gt;sysin&lt;/U&gt;&lt;/STRONG&gt; /sasdata/storage/batch/code/801_load_inputData.sas -log /var/log/801_load_inputData.&lt;STRONG&gt;&lt;U&gt;log&lt;/U&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first screenshot isn't very clear, is the error saying "A connection to Cloud Analytics Services cannot be made" ?&lt;/P&gt;
&lt;P&gt;What is the GUI are you using to run this code? Is it SAS Studio?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 07:55:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Running-SAS-programs-in-batch-Linux/m-p/622967#M18157</guid>
      <dc:creator>AnandVyas</dc:creator>
      <dc:date>2020-02-07T07:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Running SAS programs in batch Linux</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Running-SAS-programs-in-batch-Linux/m-p/622968#M18158</link>
      <description>&lt;P&gt;Do NOT run SAS as root, use the same user-id you use when accessing Viya in the "normal" way. Root does not have an entry in metadata, and can't make use of the objects there.&lt;/P&gt;
&lt;P&gt;Root is for system maintenance ONLY.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 07:55:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Running-SAS-programs-in-batch-Linux/m-p/622968#M18158</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-02-07T07:55:22Z</dc:date>
    </item>
  </channel>
</rss>

