<?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: X Commands in SAS Viya Studio in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/X-Commands-in-SAS-Viya-Studio/m-p/900619#M2064</link>
    <description>Thank you for the solution. &lt;BR /&gt;&lt;BR /&gt;But there are few more commands like rm, rm -f , cp (copying file from one path to another path).&lt;BR /&gt;&lt;BR /&gt;I will try this option. Hope it will work.</description>
    <pubDate>Mon, 30 Oct 2023 10:11:36 GMT</pubDate>
    <dc:creator>USP2405</dc:creator>
    <dc:date>2023-10-30T10:11:36Z</dc:date>
    <item>
      <title>X Commands in SAS Viya Studio</title>
      <link>https://communities.sas.com/t5/SAS-Viya/X-Commands-in-SAS-Viya-Studio/m-p/900616#M2062</link>
      <description>&lt;P&gt;I have SAS legacy code which is migrated to SAS Viya. In the code ,there are some X-commands which does not execute in SAS Viya. How do I run my x-commands in Viya Studio.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;x "rm&amp;nbsp; /data/sas/xplo/abc2405kjh.csv";&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 09:55:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/X-Commands-in-SAS-Viya-Studio/m-p/900616#M2062</guid>
      <dc:creator>USP2405</dc:creator>
      <dc:date>2023-10-30T09:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: X Commands in SAS Viya Studio</title>
      <link>https://communities.sas.com/t5/SAS-Viya/X-Commands-in-SAS-Viya-Studio/m-p/900618#M2063</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You probably have NOXCMD as an option.&lt;/P&gt;
&lt;P&gt;Check the log after submitting this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options option=xcmd; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But for the operating system command 'rm', you can use the SAS FDELETE function instead!&lt;/P&gt;
&lt;P&gt;The FDELETE function&amp;nbsp;allows us to delete directories or files directly controlled by SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 10:02:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/X-Commands-in-SAS-Viya-Studio/m-p/900618#M2063</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-10-30T10:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: X Commands in SAS Viya Studio</title>
      <link>https://communities.sas.com/t5/SAS-Viya/X-Commands-in-SAS-Viya-Studio/m-p/900619#M2064</link>
      <description>Thank you for the solution. &lt;BR /&gt;&lt;BR /&gt;But there are few more commands like rm, rm -f , cp (copying file from one path to another path).&lt;BR /&gt;&lt;BR /&gt;I will try this option. Hope it will work.</description>
      <pubDate>Mon, 30 Oct 2023 10:11:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/X-Commands-in-SAS-Viya-Studio/m-p/900619#M2064</guid>
      <dc:creator>USP2405</dc:creator>
      <dc:date>2023-10-30T10:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: X Commands in SAS Viya Studio</title>
      <link>https://communities.sas.com/t5/SAS-Viya/X-Commands-in-SAS-Viya-Studio/m-p/900623#M2065</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS has many of these functions prefixed with '&lt;STRONG&gt;f&lt;/STRONG&gt;' for dealing with external files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL class="lia-list-style-type-square"&gt;
&lt;LI&gt;fdelete&lt;/LI&gt;
&lt;LI&gt;fexist&lt;/LI&gt;
&lt;LI&gt;fileexist&lt;/LI&gt;
&lt;LI&gt;fopen&lt;/LI&gt;
&lt;LI&gt;fclose&lt;/LI&gt;
&lt;LI&gt;fcopy&lt;/LI&gt;
&lt;LI&gt;fappend&lt;/LI&gt;
&lt;LI&gt;...&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;BR, Koen&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 10:17:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/X-Commands-in-SAS-Viya-Studio/m-p/900623#M2065</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-10-30T10:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: X Commands in SAS Viya Studio</title>
      <link>https://communities.sas.com/t5/SAS-Viya/X-Commands-in-SAS-Viya-Studio/m-p/900625#M2066</link>
      <description>Good to know these commands.&lt;BR /&gt;&lt;BR /&gt;Our files are on unix and we have x commands for that.&lt;BR /&gt;&lt;BR /&gt;Could you please tell me how these SAS function will work for this x command example.&lt;BR /&gt;x "rm  /data/sas/xplo/abc2405kjh.csv";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Oct 2023 10:27:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/X-Commands-in-SAS-Viya-Studio/m-p/900625#M2066</guid>
      <dc:creator>USP2405</dc:creator>
      <dc:date>2023-10-30T10:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: X Commands in SAS Viya Studio</title>
      <link>https://communities.sas.com/t5/SAS-Viya/X-Commands-in-SAS-Viya-Studio/m-p/900637#M2067</link>
      <description>Also these SAS functions are not supported in a DATA step that runs in CAS. Then we can not run these in SAS VIYA.</description>
      <pubDate>Mon, 30 Oct 2023 11:08:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/X-Commands-in-SAS-Viya-Studio/m-p/900637#M2067</guid>
      <dc:creator>USP2405</dc:creator>
      <dc:date>2023-10-30T11:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: X Commands in SAS Viya Studio</title>
      <link>https://communities.sas.com/t5/SAS-Viya/X-Commands-in-SAS-Viya-Studio/m-p/900639#M2068</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
rc = filename(fref,"/data/sas/xplo/abc2405kjh.csv");
rc = fdelete(fref);
rc = filename(fref);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also see the documentation of the&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/p0h945u5r0cv6yn1u6qs35hiqt9t.htm" target="_blank" rel="noopener"&gt;FDELETE Function&lt;/A&gt;. The other file handling functions are found right next to it.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 11:23:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/X-Commands-in-SAS-Viya-Studio/m-p/900639#M2068</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-10-30T11:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: X Commands in SAS Viya Studio</title>
      <link>https://communities.sas.com/t5/SAS-Viya/X-Commands-in-SAS-Viya-Studio/m-p/900648#M2069</link>
      <description>&lt;P&gt;My understanding is that if you have non-CAS eligible statements/functions, the data step will execute in SPRE (SAS Compute), which is also part of Viya.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 11:42:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/X-Commands-in-SAS-Viya-Studio/m-p/900648#M2069</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2023-10-30T11:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: X Commands in SAS Viya Studio</title>
      <link>https://communities.sas.com/t5/SAS-Viya/X-Commands-in-SAS-Viya-Studio/m-p/900653#M2070</link>
      <description>What if i need to execute x commands in SAS Viya?</description>
      <pubDate>Mon, 30 Oct 2023 11:54:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/X-Commands-in-SAS-Viya-Studio/m-p/900653#M2070</guid>
      <dc:creator>USP2405</dc:creator>
      <dc:date>2023-10-30T11:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: X Commands in SAS Viya Studio</title>
      <link>https://communities.sas.com/t5/SAS-Viya/X-Commands-in-SAS-Viya-Studio/m-p/900656#M2071</link>
      <description>&lt;P&gt;Just as with SAS 9.4, XCMD must be enabled.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 12:30:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/X-Commands-in-SAS-Viya-Studio/m-p/900656#M2071</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-10-30T12:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: X Commands in SAS Viya Studio</title>
      <link>https://communities.sas.com/t5/SAS-Viya/X-Commands-in-SAS-Viya-Studio/m-p/900661#M2072</link>
      <description>&lt;P&gt;Have you seen this page in the official documentation?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/sasadmincdc/v_045/calcontexts/n1hjn8eobk5pyhn1wg3ja0drdl6h.htm#n0vaodiuepq6inn1n0dd3naghxur" target="_blank"&gt;https://go.documentation.sas.com/doc/en/sasadmincdc/v_045/calcontexts/n1hjn8eobk5pyhn1wg3ja0drdl6h.htm#n0vaodiuepq6inn1n0dd3naghxur&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;That's something that a SAS Admin has to do, not an individual user.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 12:45:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/X-Commands-in-SAS-Viya-Studio/m-p/900661#M2072</guid>
      <dc:creator>EdoardoRiva</dc:creator>
      <dc:date>2023-10-30T12:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: X Commands in SAS Viya Studio</title>
      <link>https://communities.sas.com/t5/SAS-Viya/X-Commands-in-SAS-Viya-Studio/m-p/903729#M2094</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/53012"&gt;@USP2405&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;The SAS Viya Administrator can enable XCMD in the SAS Environment manager for SAS Studio V.&lt;BR /&gt;This link shows step by step how to enable XCMD in environment Manager. The method works.&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/SAS-Viya-3-5-SAS-Studio-and-SAS-Compute-Server-non-functional/ta-p/616617" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/SAS-Viya-3-5-SAS-Studio-and-SAS-Compute-Server-non-functional/ta-p/616617&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 20:45:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/X-Commands-in-SAS-Viya-Studio/m-p/903729#M2094</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2023-11-17T20:45:41Z</dc:date>
    </item>
  </channel>
</rss>

