<?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: Pulling Specific Character Variables in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Pulling-Specific-Character-Variables/m-p/161602#M42052</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. Works like it should&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Dec 2013 21:58:13 GMT</pubDate>
    <dc:creator>pbravo</dc:creator>
    <dc:date>2013-12-02T21:58:13Z</dc:date>
    <item>
      <title>Pulling Specific Character Variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Pulling-Specific-Character-Variables/m-p/161600#M42050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Morning,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I would like to pull variables that contain a specific character string in the beginning, followed by any combination afterword.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For examples, I want to pull zip codes (character) but only want the specific zip codes "97252" and anything else that comes after those 5 specific characters like the dash and state code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 21:21:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Pulling-Specific-Character-Variables/m-p/161600#M42050</guid>
      <dc:creator>pbravo</dc:creator>
      <dc:date>2013-12-02T21:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling Specific Character Variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Pulling-Specific-Character-Variables/m-p/161601#M42051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are several ways to do this, but how about a sql statement with the like function?:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13860196675868716" jivemacro_uid="_13860196675868716"&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;create table work.output as&lt;/P&gt;
&lt;P&gt;select * from&lt;/P&gt;
&lt;P&gt;work.input a&lt;/P&gt;
&lt;P&gt;where&lt;/P&gt;
&lt;P&gt;a.zipcode like '97252%';&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;You could also do this in a data step with =: operator:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13860196880498995" jivemacro_uid="_13860196880498995"&gt;
&lt;P&gt;data work.output;&lt;/P&gt;
&lt;P&gt;set work.input;&lt;/P&gt;
&lt;P&gt;if zipcode=:'97272' then output;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 21:23:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Pulling-Specific-Character-Variables/m-p/161601#M42051</guid>
      <dc:creator>statistician13</dc:creator>
      <dc:date>2013-12-02T21:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling Specific Character Variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Pulling-Specific-Character-Variables/m-p/161602#M42052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. Works like it should&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 21:58:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Pulling-Specific-Character-Variables/m-p/161602#M42052</guid>
      <dc:creator>pbravo</dc:creator>
      <dc:date>2013-12-02T21:58:13Z</dc:date>
    </item>
  </channel>
</rss>

