<?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 command not working in sas 9.4 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/X-command-not-working-in-sas-9-4/m-p/344058#M79038</link>
    <description>&lt;P&gt;You probably have different default options sets. &amp;nbsp;Check the XWAIT option in particular.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Mar 2017 13:11:48 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2017-03-24T13:11:48Z</dc:date>
    <item>
      <title>X command not working in sas 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-command-not-working-in-sas-9-4/m-p/344057#M79037</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am able to run below query in sas 9.1 without any error but now it migrated to sas 9.4 and below script is not working there. In this script I am trying to trigger sql query through SQL Plus. While running same query in sas 9.4 it open commant promt for SQL plus but didn't trigger further query&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;x "%str(sqlplus &amp;amp;sql_signon @%"&amp;amp;filepath.&amp;amp;sas.10 - SASCode\SQLPlus\ray_calc_&amp;amp;context_id._&amp;amp;process_id._&amp;amp;server_id..sql%")";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any functions required to add in the query. Even I tried %sysexec but same issue&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 13:07:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-command-not-working-in-sas-9-4/m-p/344057#M79037</guid>
      <dc:creator>Minaxi_Patel</dc:creator>
      <dc:date>2017-03-24T13:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: X command not working in sas 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-command-not-working-in-sas-9-4/m-p/344058#M79038</link>
      <description>&lt;P&gt;You probably have different default options sets. &amp;nbsp;Check the XWAIT option in particular.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 13:11:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-command-not-working-in-sas-9-4/m-p/344058#M79038</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-03-24T13:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: X command not working in sas 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-command-not-working-in-sas-9-4/m-p/344075#M79042</link>
      <description>&lt;P&gt;Thanks Tom&lt;BR /&gt;it seems 'Sql_signon' command is not recognize in command promp&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 14:22:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-command-not-working-in-sas-9-4/m-p/344075#M79042</guid>
      <dc:creator>Minaxi_Patel</dc:creator>
      <dc:date>2017-03-24T14:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: X command not working in sas 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-command-not-working-in-sas-9-4/m-p/344084#M79046</link>
      <description>&lt;P&gt;If you run this code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%put &amp;amp;sql_signon;&lt;/P&gt;
&lt;P&gt;what kind of result do you get?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may be using a macro variable created by some process in your 9.1 install that has not been migrated over to your 9.4 version.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also when you upgraded did you by any chance move to a server version from a stand alone SAS install? If so then the command is being sent to the server and it's permissions and even installed programs may well vary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you get warnings or errors it would help to post them to help diagnose the issue.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 14:38:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-command-not-working-in-sas-9-4/m-p/344084#M79046</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-03-24T14:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: X command not working in sas 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-command-not-working-in-sas-9-4/m-p/344085#M79047</link>
      <description>&lt;P&gt;To debug calls to operating system commands like to use a data step with PIPE on infile. &amp;nbsp;That way you can read the output of the command, including any error messages.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  infile  %sysfunc(quote(sqlplus &amp;amp;sql_signon 
@"&amp;amp;filepath.&amp;amp;sas.10 -SASCode\SQLPlus\ray_calc_&amp;amp;context_id._&amp;amp;process_id._&amp;amp;server_id..sql"
  )) pipe ;
  input ;
  put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Mar 2017 14:38:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-command-not-working-in-sas-9-4/m-p/344085#M79047</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-03-24T14:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: X command not working in sas 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-command-not-working-in-sas-9-4/m-p/344631#M79212</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reply. Yes you are right. it seems some setting need to update. but not sure where we can update it. Normally we can run Script in SQL plus but not through sas. I am getting below error. tried so do settings for ORACLE_HOME &amp;nbsp;but still same issue. I have checked macro variables give correct values as we creat macro variables in same code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stderr output:&lt;/P&gt;
&lt;P&gt;Error 6 initializing SQL*Plus&lt;/P&gt;
&lt;P&gt;SP2-0667: Message file sp1&amp;lt;lang&amp;gt;.msb not found&lt;/P&gt;
&lt;P&gt;SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory&lt;/P&gt;
&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.32 seconds&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 14:43:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-command-not-working-in-sas-9-4/m-p/344631#M79212</guid>
      <dc:creator>Minaxi_Patel</dc:creator>
      <dc:date>2017-03-27T14:43:13Z</dc:date>
    </item>
  </channel>
</rss>

