<?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: enabling PIPE command in sas submitted using iom.provider in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/enabling-PIPE-command-in-sas-submitted-using-iom-provider/m-p/107471#M1240</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But I need to use IOM Provider - where can I find XCMD setting for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Apr 2013 13:27:23 GMT</pubDate>
    <dc:creator>tom12122</dc:creator>
    <dc:date>2013-04-15T13:27:23Z</dc:date>
    <item>
      <title>enabling PIPE command in sas submitted using iom.provider</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/enabling-PIPE-command-in-sas-submitted-using-iom-provider/m-p/107467#M1236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to execute macros that contain PIPE commands but I get error saying that I need some special prividges to run this command. Where and how exactly should I set those priviledges - I can execute these commands in "normal window" SAS and iom povider also runs "locally" so it should have the same settings, shouldn't it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Apr 2013 19:07:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/enabling-PIPE-command-in-sas-submitted-using-iom-provider/m-p/107467#M1236</guid>
      <dc:creator>tom12122</dc:creator>
      <dc:date>2013-04-13T19:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: enabling PIPE command in sas submitted using iom.provider</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/enabling-PIPE-command-in-sas-submitted-using-iom-provider/m-p/107468#M1237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to set SAS invocation option 'XCMD'&lt;/P&gt;&lt;P&gt;Below link explains it all:&lt;/P&gt;&lt;P&gt;&lt;A href="http://platformadmin.com/blogs/paul/2011/06/noxcmd/" title="http://platformadmin.com/blogs/paul/2011/06/noxcmd/"&gt;NOXCMD: NO eXternal CoMmanDs! - platformadmin.com&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Apr 2013 00:38:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/enabling-PIPE-command-in-sas-submitted-using-iom-provider/m-p/107468#M1237</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-04-14T00:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: enabling PIPE command in sas submitted using iom.provider</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/enabling-PIPE-command-in-sas-submitted-using-iom-provider/m-p/107469#M1238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But the problem is that i don't have sas server running - I connect using iom.provider using ADO &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/oledbpr/59558/PDF/default/oledbpr.pdf" title="http://support.sas.com/documentation/cdl/en/oledbpr/59558/PDF/default/oledbpr.pdf"&gt;http://support.sas.com/documentation/cdl/en/oledbpr/59558/PDF/default/oledbpr.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Apr 2013 07:53:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/enabling-PIPE-command-in-sas-submitted-using-iom-provider/m-p/107469#M1238</guid>
      <dc:creator>tom12122</dc:creator>
      <dc:date>2013-04-14T07:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: enabling PIPE command in sas submitted using iom.provider</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/enabling-PIPE-command-in-sas-submitted-using-iom-provider/m-p/107470#M1239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For connecting to a locally installed SAS without a pre-existing session / SAS\Share I find the following in the docu link you've posted:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim obConnection As New ADODB.Connection&lt;/P&gt;&lt;P&gt;obConnection.Provider = "sas.BaseSASProvider"&lt;/P&gt;&lt;P&gt;obConnection.Properties("Data Source") = "sdplserv"&lt;/P&gt;&lt;P&gt;obConnection.Properties("SAS Executable") = &lt;STRONG&gt;"C:\\Program Files\\SAS\\SASFoundation\\9.2\\sas.exe"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;obConnection.Properties("SAS Parameters") = "-initstmt %sasodbc(sdplserv) -icon -nosplash"&lt;/P&gt;&lt;P&gt;obConnection.Properties("SAS Working Directory") = "C:\\Program Files\\SAS\\SASFoundation\9.2\\"&lt;/P&gt;&lt;P&gt;obConnection.Open&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my understanding what this does is creating a new SAS session - and when this happens configuration files and autoexec files get executed during SAS invocation.&lt;/P&gt;&lt;P&gt;Setting XCMD as described in the link from Paul Holmes which I've posted should then allow you to execute SAS code using shell escape.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What I possibly should add: If you want to be sure that your job gets an identical environment than when running out of PC SAS then look up how your PC SAS starts (i.e. right click on your SAS link under "start/programs", go to "properties" and under tab "Shortcut" use the "Target" path. Then add this target path as a connection property. On the local SAS installation on my laptop this would be (not tested):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;obConnection.Properties("SAS Parameters") = '-CONFIG "C:\Program Files\SASHome\SASFoundation\9.3\nls\en\sasv9.cfg"'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://support.sas.com/documentation/cdl/en/hostwin/63285/HTML/default/viewer.htm#win-sysop-config.htm"&gt;http://support.sas.com/documentation/cdl/en/hostwin/63285/HTML/default/viewer.htm#win-sysop-config.htm&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Apr 2013 09:33:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/enabling-PIPE-command-in-sas-submitted-using-iom-provider/m-p/107470#M1239</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-04-14T09:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: enabling PIPE command in sas submitted using iom.provider</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/enabling-PIPE-command-in-sas-submitted-using-iom-provider/m-p/107471#M1240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But I need to use IOM Provider - where can I find XCMD setting for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 13:27:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/enabling-PIPE-command-in-sas-submitted-using-iom-provider/m-p/107471#M1240</guid>
      <dc:creator>tom12122</dc:creator>
      <dc:date>2013-04-15T13:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: enabling PIPE command in sas submitted using iom.provider</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/enabling-PIPE-command-in-sas-submitted-using-iom-provider/m-p/107472#M1241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not the specialist in this but the IOM provider simply provides connectivity to SAS. You ARE creating a new SAS session and I understand more or less how this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During SAS invocation first the config files (.cfg) and then the autoexec files (.sas) get executed. Config and Autoexec files create your SAS environment of which the option setting of "XMCD" or "NOXCMD" is part. Config files and Autoexec files are "cascading" meaning that the first config file can "call" an additional config file ...and so on. So you need to find the first in the list and the entries in there will tell you what other config and autoexec files get executed. &lt;/P&gt;&lt;P&gt;I believe that the first config file in the list is the one which sits in the same folder than the "sas.exe" you're calling - so you know where to start from. Just set "options XCMD;" in one of the autoexecs or if you have SAS Mangement Console then modify the value there as explained in Paul Holmes link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How SAS starts up is documented. Using the IOM provider is what a lot of SAS clients do (for example SAS EG). So you can also find a lot of information about this there (a keyword could be "object spawner").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if this would work but you could also try&lt;/P&gt;&lt;P&gt;obConnection.Properties("SAS Executable") = &lt;STRONG&gt;"C:\\Program Files\\SAS\\SASFoundation\\9.2\\sas.exe -XCMD"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would expect this not to work as the "NOXCMD" setting in SAS Metadata gets executed later. But again: I'm not really a SAS Admin. Just a guy who sometimes needs to make things work at client site if no experienced SAS Admin is around.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 12:02:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/enabling-PIPE-command-in-sas-submitted-using-iom-provider/m-p/107472#M1241</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-04-17T12:02:42Z</dc:date>
    </item>
  </channel>
</rss>

