<?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: Read Access Varible into SAS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Read-Access-Varible-into-SAS/m-p/180899#M46078</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thie is what my database looks like&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.PNG" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/9364_1.PNG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Feb 2015 23:47:14 GMT</pubDate>
    <dc:creator>JaneLi</dc:creator>
    <dc:date>2015-02-24T23:47:14Z</dc:date>
    <item>
      <title>Read Access Varible into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Read-Access-Varible-into-SAS/m-p/180897#M46076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to read two variables from my access database and then do SQL.&amp;nbsp; But there are three variable in my database: personID, country and city. I only need to read two variables personID and city. How SAS only read the first and third column?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data PersonDS3 ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; Infile Person3 missover firstobs=2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Input PersonID&amp;nbsp; City &amp;amp; $25. ; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Proc SQL;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; Create table Most_PersonID AS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; SELECT city Count(PersonID)AS CountOfPersonID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; FROM PersonDS3 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GROUP BY city;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; quit;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Proc sort data=Most_PersonID; by Descending CountOfPersonID;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 21:16:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Read-Access-Varible-into-SAS/m-p/180897#M46076</guid>
      <dc:creator>JaneLi</dc:creator>
      <dc:date>2015-02-24T21:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Read Access Varible into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Read-Access-Varible-into-SAS/m-p/180898#M46077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why are you using infile to read from an Access DB?&lt;/P&gt;&lt;P&gt;I would assume you're using ODBC or some other method that would allow you to DROP the variable on the set statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data personD3;&lt;/P&gt;&lt;P&gt;set accessDB (drop=unwanted_var);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 23:42:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Read-Access-Varible-into-SAS/m-p/180898#M46077</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-02-24T23:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Read Access Varible into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Read-Access-Varible-into-SAS/m-p/180899#M46078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thie is what my database looks like&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.PNG" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/9364_1.PNG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 23:47:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Read-Access-Varible-into-SAS/m-p/180899#M46078</guid>
      <dc:creator>JaneLi</dc:creator>
      <dc:date>2015-02-24T23:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Read Access Varible into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Read-Access-Varible-into-SAS/m-p/180900#M46079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And I only want to read PersonID, country and city. But in the city column there are always some gender information. I don't know how to deal with these junk values.&lt;IMG alt="22.PNG" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/9365_22.PNG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 23:48:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Read-Access-Varible-into-SAS/m-p/180900#M46079</guid>
      <dc:creator>JaneLi</dc:creator>
      <dc:date>2015-02-24T23:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Read Access Varible into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Read-Access-Varible-into-SAS/m-p/180901#M46080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my friend said I should use&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; background-color: #ffffff;"&gt;"if" and "substr" to delete the junk value. but I still couldn't figure it out.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 23:51:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Read-Access-Varible-into-SAS/m-p/180901#M46080</guid>
      <dc:creator>JaneLi</dc:creator>
      <dc:date>2015-02-24T23:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Read Access Varible into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Read-Access-Varible-into-SAS/m-p/180902#M46081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Were you provided this Access DB in this format or did you receive a text file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd go back a step and fix it there first.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2015 02:01:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Read-Access-Varible-into-SAS/m-p/180902#M46081</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-02-25T02:01:14Z</dc:date>
    </item>
  </channel>
</rss>

