<?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: Importing ACCESS table with Multiple response values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Importing-ACCESS-table-with-Multiple-response-values/m-p/65866#M14296</link>
    <description>I tried and created an access db with only 6 records and it works fine with either proc import or the libname statement, also SAS 9.2 TS2M3. I do notice that your extension is accdb though and not sure what the difference is, mine is mdb.&lt;BR /&gt;
&lt;BR /&gt;
Two possibilities, check how SAS is displaying this variable, it may have read it in right, but have the wrong format set. &lt;BR /&gt;
&lt;BR /&gt;
Or if the first time this happens is later in the dataset and you might need to play with the guessing rows options similar to excel. &lt;BR /&gt;
&lt;BR /&gt;
HTH,&lt;BR /&gt;
Reeza</description>
    <pubDate>Mon, 16 May 2011 23:25:20 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2011-05-16T23:25:20Z</dc:date>
    <item>
      <title>Importing ACCESS table with Multiple response values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-ACCESS-table-with-Multiple-response-values/m-p/65865#M14295</link>
      <description>Hi, I have a problem when importing data from ACCESS table which takes multiple values.&lt;BR /&gt;
&lt;BR /&gt;
One of the questions in the access form was:&lt;BR /&gt;
What is (are) your favorite fruit? The coding of the answer are 1=Apple, 2=Orange, 3=Banana, 4=Melon, 5=Mango, 6=Strawberry. Respondents are allowed to choose all that applies, so if they pick more than one choice the data will be stored as 3,4,6 for example. However when I imported the database to SAS format, it only takes the first value (‘3’) but not whole value string (‘3,4,6’). &lt;BR /&gt;
&lt;BR /&gt;
Please suggest what I need to do to fix it.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
PROC IMPORT OUT= WORK.FruitData &lt;BR /&gt;
            DATATABLE= "Fruit Survey" &lt;BR /&gt;
            DBMS=ACCESS REPLACE;&lt;BR /&gt;
     DATABASE="&amp;amp;path\Fruit Survey.accdb"; &lt;BR /&gt;
     SCANMEMO=YES;&lt;BR /&gt;
     USEDATE=NO;&lt;BR /&gt;
     SCANTIME=YES;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
PS. I am using windows SAS 9.2 TS2M3.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Fri, 13 May 2011 20:19:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-ACCESS-table-with-Multiple-response-values/m-p/65865#M14295</guid>
      <dc:creator>WKC</dc:creator>
      <dc:date>2011-05-13T20:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Importing ACCESS table with Multiple response values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-ACCESS-table-with-Multiple-response-values/m-p/65866#M14296</link>
      <description>I tried and created an access db with only 6 records and it works fine with either proc import or the libname statement, also SAS 9.2 TS2M3. I do notice that your extension is accdb though and not sure what the difference is, mine is mdb.&lt;BR /&gt;
&lt;BR /&gt;
Two possibilities, check how SAS is displaying this variable, it may have read it in right, but have the wrong format set. &lt;BR /&gt;
&lt;BR /&gt;
Or if the first time this happens is later in the dataset and you might need to play with the guessing rows options similar to excel. &lt;BR /&gt;
&lt;BR /&gt;
HTH,&lt;BR /&gt;
Reeza</description>
      <pubDate>Mon, 16 May 2011 23:25:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-ACCESS-table-with-Multiple-response-values/m-p/65866#M14296</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2011-05-16T23:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Importing ACCESS table with Multiple response values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-ACCESS-table-with-Multiple-response-values/m-p/65867#M14297</link>
      <description>I exported the database to a text file and found that the data was stored in a text field as "3;4;6”. &lt;BR /&gt;
&lt;BR /&gt;
Not sure if that matters, but the answers were associated with another table which store the underlying coding ; ie. when one select Banana, Melon and Strawberry in the form, it will be stored as “3;4;6” as above.&lt;BR /&gt;
&lt;BR /&gt;
SAS was able to read it as Character field and displayed as a single digit character (length=3 format=$3. Informat=$3.) in the SAS viewer. However the PROC FREQ procedure suggested the frequency as follow (the layout is edited to fit the display on this forum). :&lt;BR /&gt;
&lt;BR /&gt;
Q2ID --- Frequency --- Percent --- Cumulative Frequency --- Cumulative Percent&lt;BR /&gt;
---------------------------------------------------------------------------------------&lt;BR /&gt;
 3 0  --- 3 ---  0.53  --- 165  --- 29.36&lt;BR /&gt;
 3 1  --- 1 ---  0.18  --- 166  --- 29.54&lt;BR /&gt;
 3 2 ---  2 ---  0.36  --- 168  --- 29.89&lt;BR /&gt;
&lt;BR /&gt;
I was confused, b/c in the dataset, I was not able to find anything like 3 0, 3 1 or 3 2 ...</description>
      <pubDate>Tue, 17 May 2011 15:37:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-ACCESS-table-with-Multiple-response-values/m-p/65867#M14297</guid>
      <dc:creator>WKC</dc:creator>
      <dc:date>2011-05-17T15:37:08Z</dc:date>
    </item>
  </channel>
</rss>

