<?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 sas with php in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/sas-with-php/m-p/129281#M1706</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone provide me with a doc telling how to integrate sap with php or is there a sample code that I can refer to see how the integration is done.I am using php and mysql and I need sas for some statistics too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Divyansh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Sep 2012 16:31:39 GMT</pubDate>
    <dc:creator>divyansh</dc:creator>
    <dc:date>2012-09-24T16:31:39Z</dc:date>
    <item>
      <title>sas with php</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/sas-with-php/m-p/129281#M1706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone provide me with a doc telling how to integrate sap with php or is there a sample code that I can refer to see how the integration is done.I am using php and mysql and I need sas for some statistics too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Divyansh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 16:31:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/sas-with-php/m-p/129281#M1706</guid>
      <dc:creator>divyansh</dc:creator>
      <dc:date>2012-09-24T16:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: sas with php</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/sas-with-php/m-p/129282#M1707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you need to use SAS to perform statistical operations on MySQL data, you can use the SAS/Access product to retrieve the data from MySQL, and you can just run SAS as a batch program from PHP. Your SAS code would be in a text file that you would refer in your SAS invocation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can provide more details of what you need to do, we can provide more advice. In particular, the hardware / OS that you are running this on would help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 16:38:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/sas-with-php/m-p/129282#M1707</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2012-09-24T16:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: sas with php</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/sas-with-php/m-p/129283#M1708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i need to create a system where i ll b executing queries where data is in mysql but in certain queries I need some statistics,so I was thinkin if I can use sas to perform those statistics,so thats y i am lookin to integrate it with php,so m lookin for some documentation on how to do it or a sample code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 16:53:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/sas-with-php/m-p/129283#M1708</guid>
      <dc:creator>divyansh</dc:creator>
      <dc:date>2012-09-24T16:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: sas with php</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/sas-with-php/m-p/129284#M1709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps it can be done, but it woulnd't certainly be best practice. As TomKari mentioned, running SAS programs on MySQL via the SAS/ACCESS interface is the preferred option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 06:30:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/sas-with-php/m-p/129284#M1709</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2012-09-25T06:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: sas with php</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/sas-with-php/m-p/129285#M1710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can i get to see any documentation on how this can be done or a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 18:10:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/sas-with-php/m-p/129285#M1710</guid>
      <dc:creator>divyansh</dc:creator>
      <dc:date>2012-09-25T18:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: sas with php</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/sas-with-php/m-p/129286#M1711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To integrate with external programming languages you will require SAS Integration Technologies Software.&amp;nbsp; Through that software you can integrate with SAS in any of several ways including IOM.&amp;nbsp; PHP is not a very common choice for integration but there should be no limitations other than lack of langugage specific examples in the documentation and fewer outside resources online to help you...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your plan is to interface through PHP with SAS to exchange data from a MySQL database into SAS you would be far better off enabling SAS to access the data in MySQL directly as others suggested using the appropriate SAS/ACCESS product.&amp;nbsp; There is one specific for MySQL and there is also the more general ODBC / OLE DB providers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/onlinedoc/inttech/index.html" style="font-family: Arial, Helvetica, Verdana, sans-serif; text-decoration: underline; color: #0066cc;"&gt;SAS Integration Technologies &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/onlinedoc/access/index.html" style="font-family: Arial, Helvetica, Verdana, sans-serif; text-decoration: underline; color: #0066cc;"&gt;SAS/ACCESS&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/65247/HTML/default/p02t4dkncyoxu7n1w2ysn79hm7em.htm" id="p_p02t4dkncyoxu7n1w2ysn79hm7em.htm" style="font-size: 10px; font-family: Arial, Helvetica, Verdana, sans-serif; color: #0066cc; background-color: #eff8ff;"&gt;SAS/ACCESS Interface to MySQL&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/acreldb/65247/HTML/default/p1g72kbb0m01y1n1gm1lh532n5ru.htm" id="p_p1g72kbb0m01y1n1gm1lh532n5ru.htm" style="font-size: 10px; font-family: Arial, Helvetica, Verdana, sans-serif; color: #0066cc; background-color: #eff8ff;"&gt;SAS/ACCESS Interface to ODBC&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/65247/HTML/default/p17k7gdjrqtqthn1fpe4grgudkyu.htm" id="p_p17k7gdjrqtqthn1fpe4grgudkyu.htm" style="font-size: 10px; font-family: Arial, Helvetica, Verdana, sans-serif; color: #ff6600; background-color: #eff8ff;"&gt;SAS/ACCESS Interface to OLE DB&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 23:13:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/sas-with-php/m-p/129286#M1711</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2012-09-25T23:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: sas with php</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/sas-with-php/m-p/129287#M1712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To do this without a high level of integration, there are two steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first is to ensure that your SAS software on your server can successfully access your MySQL data. This is done using the SAS/Access product, either the MySQL or the ODBC options. This is completely independent from PHP, and will allow your SAS programs to use MySQL data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once this is working, you need to create your SAS code (which can be done dynamically), save it in a text format dataset, and call SAS from PHP, referencing your SAS code. I'm not a PHP programmer myself, but from a quick look at the documentation it appears the exec() function would be ideal for this. On my PC, to execute SAS and have it run a program stored in "C:\SAS_PROGRAMS\TestProgram.SAS", I run the following command under Windows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"C:\Program Files\SASHome\SASFoundation\9.3\sas.exe" -SYSIN C:\SAS_PROGRAMS\TestProgram.SAS -CONFIG "C:\Program Files\SASHome\SASFoundation\9.3\nls\en\sasv9.cfg"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a demonstration, my program (TestProgram.SAS) looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data sasuser.test_output;&lt;/P&gt;&lt;P&gt;set sashelp.shoes;&lt;/P&gt;&lt;P&gt;SalesPerStore = Sales / Stores;&lt;/P&gt;&lt;P&gt;format SalesPerStore Dollar12.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would probably substitute a MySQL library for my use of sashelp, and you might send your output to a text file instead of a SAS dataset, but those changes are very easy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't believe that you'll find any major problems, but I'm sure there will be a couple of bumps in the road. Just post your questions back to this discussion board; there's a LOT of expertise reading it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 17:01:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/sas-with-php/m-p/129287#M1712</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2012-09-26T17:01:17Z</dc:date>
    </item>
  </channel>
</rss>

