<?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: Using SAS/ACCESS Interface to ODBC on UNIX Platforms in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Using-SAS-ACCESS-Interface-to-ODBC-on-UNIX-Platforms/m-p/470736#M14749</link>
    <description>&lt;P&gt;The libname is simply:&lt;/P&gt;&lt;P&gt;libname LISin odbc dsn=LISin;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LISin is configured in the ODBC configuration to point to an access database (2000 format). The Access database can read the Outlook emails file. I haven't managed to get SAS to read any Access database. After reading some more, I'm sure the problem is a 64/32 bit compatibility issue.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jun 2018 22:55:21 GMT</pubDate>
    <dc:creator>BruceBrad</dc:creator>
    <dc:date>2018-06-15T22:55:21Z</dc:date>
    <item>
      <title>Using SAS/ACCESS Interface to ODBC on UNIX Platforms</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Using-SAS-ACCESS-Interface-to-ODBC-on-UNIX-Platforms/m-p/470716#M14744</link>
      <description>&lt;P&gt;I want to read emails from an Outlook folder into a SAS table. I'm following the ODBC approach in &lt;A title="http://support.sas.com/resources/papers/proceedings10/086-2010.pdf" href="http://support.sas.com/resources/papers/proceedings10/086-2010.pdf" rel="nofollow noopener noreferrer" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings10/086-2010.pdf&lt;/A&gt; but I'm getting an error:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ERROR: CLI error trying to establish connection: [Microsoft][ODBC Driver Manager] The specified&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DSN contains an architecture mismatch between the Driver and Application&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ERROR: Error in the LIBNAME statement.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm guessing this is some 32/64bit incompatibility. I'm using Outlook and Access 32 bit, but SAS 64bit (9.4TS1M3). Can this be made to work?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 21:41:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Using-SAS-ACCESS-Interface-to-ODBC-on-UNIX-Platforms/m-p/470716#M14744</guid>
      <dc:creator>BruceBrad</dc:creator>
      <dc:date>2018-06-15T21:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS/ACCESS Interface to ODBC on UNIX Platforms</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Using-SAS-ACCESS-Interface-to-ODBC-on-UNIX-Platforms/m-p/470723#M14746</link>
      <description>&lt;P&gt;As a minimum I suggest showing your LIbname statement. Someone may have an idea for what may be missing or incorrect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also since the reference paper is from 2010 and references Outlook 2007 and Access 2007 it may be fun digging out the changes that Micro$oft has made to the office interfaces. It might be and Office ODBC driver that needs to be updated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you get the Access bit to connect to Outlook okay without involving SAS in any way?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also can you connect to Access with a simple table or two successfully?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 22:09:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Using-SAS-ACCESS-Interface-to-ODBC-on-UNIX-Platforms/m-p/470723#M14746</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-06-15T22:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS/ACCESS Interface to ODBC on UNIX Platforms</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Using-SAS-ACCESS-Interface-to-ODBC-on-UNIX-Platforms/m-p/470736#M14749</link>
      <description>&lt;P&gt;The libname is simply:&lt;/P&gt;&lt;P&gt;libname LISin odbc dsn=LISin;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LISin is configured in the ODBC configuration to point to an access database (2000 format). The Access database can read the Outlook emails file. I haven't managed to get SAS to read any Access database. After reading some more, I'm sure the problem is a 64/32 bit compatibility issue.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 22:55:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Using-SAS-ACCESS-Interface-to-ODBC-on-UNIX-Platforms/m-p/470736#M14749</guid>
      <dc:creator>BruceBrad</dc:creator>
      <dc:date>2018-06-15T22:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS/ACCESS Interface to ODBC on UNIX Platforms</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Using-SAS-ACCESS-Interface-to-ODBC-on-UNIX-Platforms/m-p/470743#M14751</link>
      <description>&lt;P&gt;By any chance do you have the SAS/Access Interface to PCFiles licensed? If so a Libname lisin PCFILES path="path and name of accessdb" might work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you do have the Interface to PCFiles but things aren't working you might try downloading the PCFILES server which is one of the ways around the 64/32 bit issue.&amp;nbsp; &lt;A href="https://support.sas.com/downloads/browse.htm?fil=&amp;amp;cat=63" target="_blank"&gt;https://support.sas.com/downloads/browse.htm?fil=&amp;amp;cat=63&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I no longer have Microsoft access and the one time I did the ODBC connection was with SAS 9.2 and was 32 bit, so that might be the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 23:20:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Using-SAS-ACCESS-Interface-to-ODBC-on-UNIX-Platforms/m-p/470743#M14751</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-06-15T23:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS/ACCESS Interface to ODBC on UNIX Platforms</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Using-SAS-ACCESS-Interface-to-ODBC-on-UNIX-Platforms/m-p/471189#M14762</link>
      <description>&lt;P&gt;Got it working (sort of) after installing the 32 bit version of PC files server. My code is now:&lt;/P&gt;&lt;PRE&gt;proc import out=temp replace
            datatable="emails"
            dbms=accesscs
            ;
            database="emails.accdb";
            memosize=32767;
            run;&lt;/PRE&gt;&lt;P&gt;Unfortunately, the engine can only read long text fields up to 32767 bytes. The email content I want read is larger than this - so I'll have to think of some other approach.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 18:35:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Using-SAS-ACCESS-Interface-to-ODBC-on-UNIX-Platforms/m-p/471189#M14762</guid>
      <dc:creator>BruceBrad</dc:creator>
      <dc:date>2018-06-18T18:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS/ACCESS Interface to ODBC on UNIX Platforms</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Using-SAS-ACCESS-Interface-to-ODBC-on-UNIX-Platforms/m-p/471214#M14764</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12505"&gt;@BruceBrad&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Got it working (sort of) after installing the 32 bit version of PC files server. My code is now:&lt;/P&gt;
&lt;PRE&gt;proc import out=temp replace
            datatable="emails"
            dbms=accesscs
            ;
            database="emails.accdb";
            memosize=32767;
            run;&lt;/PRE&gt;
&lt;P&gt;Unfortunately, the engine can only read long text fields up to 32767 bytes. The email content I want read is larger than this - so I'll have to think of some other approach.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;As I mentioned I don't have Access. But a generic problem comes from using ProC Import in that the guessing procedure does just that and truncates long values. You might be able to write a data step to read the table and read the long field into multiple variables. Might.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 19:46:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Using-SAS-ACCESS-Interface-to-ODBC-on-UNIX-Platforms/m-p/471214#M14764</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-06-18T19:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS/ACCESS Interface to ODBC on UNIX Platforms</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Using-SAS-ACCESS-Interface-to-ODBC-on-UNIX-Platforms/m-p/472209#M14801</link>
      <description>&lt;P&gt;A summary of my resolution to this. First, I'm not sure how 'unix' got into the subject line. No unix involved in this.&lt;/P&gt;&lt;P&gt;My goal was to read incoming emails (from the Outlook client) into SAS. I now have a procedure that writes each email to a text file (which can be read by sas). The strategy is:&lt;/P&gt;&lt;P&gt;1) Configure an Outlook Rule that runs a VBA script against every candidate incoming email. In recent versions of Outlook you need to change a registry value to permit this.&lt;/P&gt;&lt;PRE&gt;[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Outlook\Security]"EnableUnsafeClientMailRules"=dword:00000001&lt;/PRE&gt;&lt;P&gt;2) Use a VBA script as per the following code. (You need to enable a reference to Microsoft Scripting Runtime for the FileSystemObject to work). (There is an alternative Savefile method in VBA but this wraps long lines of text).&lt;/P&gt;&lt;PRE&gt;Sub SaveLIS(Item As Outlook.MailItem)
Dim Received As String
Dim Subject As String
Received = Format(Item.ReceivedTime, "yyyy-mm-dd-hh-MM-ss")
Subject = strLegalFileName(Item.Subject)
Dim objFS As Scripting.FileSystemObject
Dim objOutputFile As Scripting.TextStream
Set objFS = New Scripting.FileSystemObject
Set objOutputFile = objFS.CreateTextFile("C:\temp\Returns\" &amp;amp; Subject &amp;amp; " R; " &amp;amp; Received &amp;amp; ".txt", True)
objOutputFile.Write Item.Body
objOutputFile.Close
End Sub

' Utility function to tidy up filename
Function strLegalFileName(strFileNameIn As String) As String
Dim i As Integer
Const strIllegals = "\/|?*&amp;lt;&amp;gt;"":"
strLegalFileName = strFileNameIn
For i = 1 To Len(strIllegals)
strLegalFileName = Replace(strLegalFileName, Mid$(strIllegals, i, 1), "_")
Next i
End Function&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Jun 2018 16:56:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Using-SAS-ACCESS-Interface-to-ODBC-on-UNIX-Platforms/m-p/472209#M14801</guid>
      <dc:creator>BruceBrad</dc:creator>
      <dc:date>2018-06-21T16:56:16Z</dc:date>
    </item>
  </channel>
</rss>

