<?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 X command for sasgsub in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/X-command-for-sasgsub/m-p/432934#M12108</link>
    <description>&lt;P&gt;Hello - when we use sasgsub&amp;nbsp;command to run job in batch mode (sas test.sas) and when have x cmd to output results in form of .lst or whatever, its not running - just doing nothing. this is happening with new environment (sas 9.4 grid/Linux). example,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;x env | sort &amp;gt; /userhome-dir/test.lst;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where to look to allow xcmd command?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jan 2018 22:42:48 GMT</pubDate>
    <dc:creator>woo</dc:creator>
    <dc:date>2018-01-31T22:42:48Z</dc:date>
    <item>
      <title>X command for sasgsub</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/X-command-for-sasgsub/m-p/432934#M12108</link>
      <description>&lt;P&gt;Hello - when we use sasgsub&amp;nbsp;command to run job in batch mode (sas test.sas) and when have x cmd to output results in form of .lst or whatever, its not running - just doing nothing. this is happening with new environment (sas 9.4 grid/Linux). example,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;x env | sort &amp;gt; /userhome-dir/test.lst;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where to look to allow xcmd command?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 22:42:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/X-command-for-sasgsub/m-p/432934#M12108</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2018-01-31T22:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: X command for sasgsub</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/X-command-for-sasgsub/m-p/432960#M12109</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Allow XCMD must be enabled.&amp;nbsp; You can do this either in Management Console in options for the various sas servers or set -XCMD in your sasv9.cfg usermods file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 01:09:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/X-command-for-sasgsub/m-p/432960#M12109</guid>
      <dc:creator>foobarbaz</dc:creator>
      <dc:date>2018-02-01T01:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: X command for sasgsub</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/X-command-for-sasgsub/m-p/432984#M12110</link>
      <description>&lt;P&gt;on old environment we have -xcmd mentioned in sasbatch.sh - its working fine (we didn't mentioned -xcmd in sasv9.conf). however, in new environment we are going to use sasgsub so i am not sure where it needs to be.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 03:16:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/X-command-for-sasgsub/m-p/432984#M12110</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2018-02-01T03:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: X command for sasgsub</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/X-command-for-sasgsub/m-p/433011#M12113</link>
      <description>&lt;P&gt;Run the below in your batch job. This will tell you if X commands are enabled for that particular SAS session.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options option=xcmd;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Feb 2018 06:17:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/X-command-for-sasgsub/m-p/433011#M12113</guid>
      <dc:creator>nhvdwalt</dc:creator>
      <dc:date>2018-02-01T06:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: X command for sasgsub</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/X-command-for-sasgsub/m-p/433112#M12116</link>
      <description>&lt;P&gt;it says,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;XCMD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Enables the X command in SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe when we use sasgsub -gridsubmitpgm command to run sas job, x command interpret differently.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was trying running it with systask but no luck.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;systask command "mkdir /user-home-dir/test";&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 14:27:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/X-command-for-sasgsub/m-p/433112#M12116</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2018-02-01T14:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: X command for sasgsub</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/X-command-for-sasgsub/m-p/433389#M12128</link>
      <description>&lt;P&gt;XCMD is a Base SAS thing, not a SASGSUB thing, so regardless of how you invoke SAS, if the SAS session is XCMD enabled, like you have verified, then you should be good.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just humor me and put your OS command in quotes, like below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;x 'env | sort &amp;gt; /userhome-dir/test.lst';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also, have you tried running this command on the UNIX command line with the same user that runs the SAS job ?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 05:55:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/X-command-for-sasgsub/m-p/433389#M12128</guid>
      <dc:creator>nhvdwalt</dc:creator>
      <dc:date>2018-02-02T05:55:37Z</dc:date>
    </item>
  </channel>
</rss>

