<?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 Checking Column based on format in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Checking-Column-based-on-format/m-p/17233#M3254</link>
    <description>I'm very new to SAS &lt;BR /&gt;
Please excuse my ignorance with some of my questions.&lt;BR /&gt;
I have a social security column which is manually entered by some outside users.&lt;BR /&gt;
Is there a way for me to check this column based on this format: XXX-XX-XXXX &lt;BR /&gt;
I want to find the columns that don't match this format if possible.&lt;BR /&gt;
&lt;BR /&gt;
Thank You&lt;BR /&gt;
Jerry</description>
    <pubDate>Thu, 09 Apr 2009 21:27:00 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-04-09T21:27:00Z</dc:date>
    <item>
      <title>Checking Column based on format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Checking-Column-based-on-format/m-p/17233#M3254</link>
      <description>I'm very new to SAS &lt;BR /&gt;
Please excuse my ignorance with some of my questions.&lt;BR /&gt;
I have a social security column which is manually entered by some outside users.&lt;BR /&gt;
Is there a way for me to check this column based on this format: XXX-XX-XXXX &lt;BR /&gt;
I want to find the columns that don't match this format if possible.&lt;BR /&gt;
&lt;BR /&gt;
Thank You&lt;BR /&gt;
Jerry</description>
      <pubDate>Thu, 09 Apr 2009 21:27:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Checking-Column-based-on-format/m-p/17233#M3254</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-09T21:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Checking Column based on format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Checking-Column-based-on-format/m-p/17234#M3255</link>
      <description>One technique in a SAS DATA step is to use TRANSLATE such as:&lt;BR /&gt;
&lt;BR /&gt;
DATA _NULL_;&lt;BR /&gt;
SSN = '222-22-2222';&lt;BR /&gt;
IF TRANSLATE(SSN,'%%%%%%%%%%','0123456789') NE '%%%-%%-%%%%' THEN PUTLOG '&amp;gt;ERROR&amp;gt;  INVALID VARIABLE: ' SSN= ;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 09 Apr 2009 22:12:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Checking-Column-based-on-format/m-p/17234#M3255</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-04-09T22:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Checking Column based on format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Checking-Column-based-on-format/m-p/17235#M3256</link>
      <description>Scott,&lt;BR /&gt;
Thank you again for your help.  That is what I was looking for.  All I have to is change it around a bit for populate the column with null if the format doesn't match.&lt;BR /&gt;
&lt;BR /&gt;
Thank You&lt;BR /&gt;
Jerry</description>
      <pubDate>Fri, 10 Apr 2009 12:41:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Checking-Column-based-on-format/m-p/17235#M3256</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-10T12:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Checking Column based on format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Checking-Column-based-on-format/m-p/17236#M3257</link>
      <description>Regular expressions would do this too. &lt;BR /&gt;
&lt;BR /&gt;
A right riveting read...&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi29/265-29.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi29/265-29.pdf&lt;/A&gt;</description>
      <pubDate>Fri, 10 Apr 2009 12:48:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Checking-Column-based-on-format/m-p/17236#M3257</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-10T12:48:45Z</dc:date>
    </item>
  </channel>
</rss>

