<?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: proc sql problem with Access table via PCfiles in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-sql-problem-with-Access-table-via-PCfiles/m-p/215264#M52980</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you change the table design while SAS was connected to the data base? If so it&amp;nbsp; may well be that SAS doesn't expect that to happen. If you disconnect and then reconnect (or restart SAS) does it then "see" the change you made while in Access.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jul 2015 22:37:37 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2015-07-31T22:37:37Z</dc:date>
    <item>
      <title>proc sql problem with Access table via PCfiles</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sql-problem-with-Access-table-via-PCfiles/m-p/215263#M52979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a SAS program that references a table in an Access database using the PCFiles engine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I find is that, if I open the table in Access design view and add a variable, when I reference that variable in SAS (I have tried it in a WHERE statement), it does not work. And the SAS log does not indicate any problem, it will simply return 0 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I saw this happening, I tried 2 things:&lt;/P&gt;&lt;P&gt;1) Used a DATA step to create a copy of the Access table in the work folder (simply DATA TEST; SET [ACCESSTABLE]; Run;)&lt;/P&gt;&lt;P&gt;2) Used SAS proc SQL create to create a new table, with a new variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using both of those approaches, I was able to use proc SQL and where to get the rows I was looking for (i.e., I changed nothing other than reference to the table or the variable). I concluded that if I do not create the variable in the Access table via SAS, it does not work.(I can't recall if I tried the variation whereby I would create the variable in Access, but use SAS proc sql create to create a new table using the existing table but adding a variable).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the simply query that either returned rows (if SAS created the Access table variable) or didn't (if I created it in Access);&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;select md5_raw1 from elrdb.telr1_proc where compress(_match) = 'G' and imported2 ne 1;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I look at the design view in Access, I cannot see with my eye any difference between the variable I would create there and the variable SAS creates. I have even copied the "row" (in design view, each variable is on a row) into a new row in order to maintain all the properties (double, length 8), and that didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone shed light on this? Is there any way to add a field in Access, and be able to correctly query it via SAS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 21:37:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sql-problem-with-Access-table-via-PCfiles/m-p/215263#M52979</guid>
      <dc:creator>ucdcrush</dc:creator>
      <dc:date>2015-07-31T21:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql problem with Access table via PCfiles</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sql-problem-with-Access-table-via-PCfiles/m-p/215264#M52980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you change the table design while SAS was connected to the data base? If so it&amp;nbsp; may well be that SAS doesn't expect that to happen. If you disconnect and then reconnect (or restart SAS) does it then "see" the change you made while in Access.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 22:37:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sql-problem-with-Access-table-via-PCfiles/m-p/215264#M52980</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-07-31T22:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql problem with Access table via PCfiles</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sql-problem-with-Access-table-via-PCfiles/m-p/215265#M52981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - I think it may have been connected to that database when I made the change. However, I made the change in Access several days ago, and have since then stopped and started SAS several times, and it is not reading the field properly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 22:58:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sql-problem-with-Access-table-via-PCfiles/m-p/215265#M52981</guid>
      <dc:creator>ucdcrush</dc:creator>
      <dc:date>2015-07-31T22:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql problem with Access table via PCfiles</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sql-problem-with-Access-table-via-PCfiles/m-p/215266#M52982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The fields may be case sensitive would be my only suggestions. Also, what length is the new variable? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other option is using SQL Pass through&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 23:08:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sql-problem-with-Access-table-via-PCfiles/m-p/215266#M52982</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-07-31T23:08:50Z</dc:date>
    </item>
  </channel>
</rss>

