<?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 Exeucting SAS Code in SAS Studio vs Scheduled Job in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Exeucting-SAS-Code-in-SAS-Studio-vs-Scheduled-Job/m-p/744097#M22231</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in SAS Viya 3.5 I am executing a SAS Code in SAS Studio to check a Linux directory for files.&lt;/P&gt;&lt;P&gt;"Pipe command="ls -1 /opt/sas/ftrans/*.csv"&lt;/P&gt;&lt;P&gt;NOTE: 17 records were read from the infile RDFILES."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That SAS Code returns no error. Also, the user being used has read and writing capabilities in the specified directory.&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;"[user@server]$ touch a.txt&lt;BR /&gt;&amp;nbsp;[user@server]$ pwd&lt;BR /&gt;&amp;nbsp;/opt/sas/ftrans"&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when i schedule the job in SAS Viya 3.5 I get permission denied.&lt;/P&gt;&lt;P&gt;"MPRINT(READFILES): filename rdfiles pipe "ls -1 /opt/sas/ftrans/*.csv";&lt;BR /&gt;&amp;nbsp;ERROR: Insufficient authorization to access PIPE."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 May 2021 09:05:50 GMT</pubDate>
    <dc:creator>fracou111</dc:creator>
    <dc:date>2021-05-27T09:05:50Z</dc:date>
    <item>
      <title>Exeucting SAS Code in SAS Studio vs Scheduled Job</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Exeucting-SAS-Code-in-SAS-Studio-vs-Scheduled-Job/m-p/744097#M22231</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in SAS Viya 3.5 I am executing a SAS Code in SAS Studio to check a Linux directory for files.&lt;/P&gt;&lt;P&gt;"Pipe command="ls -1 /opt/sas/ftrans/*.csv"&lt;/P&gt;&lt;P&gt;NOTE: 17 records were read from the infile RDFILES."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That SAS Code returns no error. Also, the user being used has read and writing capabilities in the specified directory.&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;"[user@server]$ touch a.txt&lt;BR /&gt;&amp;nbsp;[user@server]$ pwd&lt;BR /&gt;&amp;nbsp;/opt/sas/ftrans"&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when i schedule the job in SAS Viya 3.5 I get permission denied.&lt;/P&gt;&lt;P&gt;"MPRINT(READFILES): filename rdfiles pipe "ls -1 /opt/sas/ftrans/*.csv";&lt;BR /&gt;&amp;nbsp;ERROR: Insufficient authorization to access PIPE."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 09:05:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Exeucting-SAS-Code-in-SAS-Studio-vs-Scheduled-Job/m-p/744097#M22231</guid>
      <dc:creator>fracou111</dc:creator>
      <dc:date>2021-05-27T09:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Exeucting SAS Code in SAS Studio vs Scheduled Job</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Exeucting-SAS-Code-in-SAS-Studio-vs-Scheduled-Job/m-p/744101#M22232</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/322892"&gt;@fracou111&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in SAS Viya 3.5 I am executing a SAS Code in SAS Studio to check a Linux directory for files.&lt;/P&gt;
&lt;P&gt;"Pipe command="ls -1 /opt/sas/ftrans/*.csv"&lt;/P&gt;
&lt;P&gt;NOTE: 17 records were read from the infile RDFILES."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That SAS Code returns no error. Also, the user being used has read and writing capabilities in the specified directory.&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;"[user@server]$ touch a.txt&lt;BR /&gt;&amp;nbsp;[user@server]$ pwd&lt;BR /&gt;&amp;nbsp;/opt/sas/ftrans"&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, when i schedule the job in SAS Viya 3.5 I get permission denied.&lt;/P&gt;
&lt;P&gt;"MPRINT(READFILES): filename rdfiles pipe "ls -1 /opt/sas/ftrans/*.csv";&lt;BR /&gt;&amp;nbsp;ERROR: Insufficient authorization to access PIPE."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Your scheduled job runs with&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options noxcmd;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Check the configuration files that the scheduled jobs use, as the option is set at startup and cannot be changed later.&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 09:18:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Exeucting-SAS-Code-in-SAS-Studio-vs-Scheduled-Job/m-p/744101#M22232</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-05-27T09:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Exeucting SAS Code in SAS Studio vs Scheduled Job</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Exeucting-SAS-Code-in-SAS-Studio-vs-Scheduled-Job/m-p/744126#M22234</link>
      <description>&lt;P&gt;&amp;lt;SASConfig&amp;gt;/Lev1/SASApp/BatchServer/sasbatch.sh executes sas with the noxcmd option, so you'd need to modify that file and change "noxcmd" to "xcmd":&lt;/P&gt;
&lt;PRE&gt;[sas@host ~]$ egrep -n '^exec.*xcmd' /sas94/config/compute/Lev1/SASApp/BatchServer/sasbatch.sh
28:exec "$SAS_COMMAND" -noxcmd -lrecl 32767 "$@" "${USERMODS_OPTIONS[@]}"&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 May 2021 12:36:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Exeucting-SAS-Code-in-SAS-Studio-vs-Scheduled-Job/m-p/744126#M22234</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2021-05-27T12:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Exeucting SAS Code in SAS Studio vs Scheduled Job</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Exeucting-SAS-Code-in-SAS-Studio-vs-Scheduled-Job/m-p/744422#M22244</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your inputs. However it seems the answer relies inside SAS Viya.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To allow SAS Studio to execute Linux commands, go to Environment Manager &amp;gt; Compute Contexts &amp;gt; &lt;STRONG&gt;SAS Studio Compute Context&lt;/STRONG&gt; and add an attribute "allowXCMD" with the value "true".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To allow SAS Viya scheduled jobs to execute Linux commands, go to Environment Manager &amp;gt; Compute Contexts &amp;gt; &lt;STRONG&gt;SAS Job Execution Compute Context&lt;/STRONG&gt; and add an attribute "allowXCMD" with the value "true".&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 14:30:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Exeucting-SAS-Code-in-SAS-Studio-vs-Scheduled-Job/m-p/744422#M22244</guid>
      <dc:creator>fracou111</dc:creator>
      <dc:date>2021-05-28T14:30:40Z</dc:date>
    </item>
  </channel>
</rss>

