<?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 SAS Tip: Quick Check for Missing or Invalid Data Using Formats in SAS Tips from the Community</title>
    <link>https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Quick-Check-for-Missing-or-Invalid-Data-Using-Formats/m-p/442547#M148</link>
    <description>&lt;P&gt;You can use formats to do a quick check for missing or invalid data by creating formats that map the values and then using, for example, PROC FREQ to generate a simple report. In sample the code&amp;nbsp;below, numeric and character formats are created to group the values and then PROC FREQ is used to provide a simple/quick QC report.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the special variable list &lt;A href="http://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=p0wphcpsfgx6o7n1sjtqzizp1n39.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n0jmcol34grnien1b8mk4n9bjee8" target="_blank"&gt;_character_&lt;/A&gt; is used to assign the $missing. format to all the character variables&lt;/LI&gt;
&lt;LI&gt;the special variable list &lt;A href="http://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=p0wphcpsfgx6o7n1sjtqzizp1n39.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n0jmcol34grnien1b8mk4n9bjee8" target="_blank"&gt;_numeric_&lt;/A&gt; is used to assign the missing. format to all the numeric variables&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
 value missing low-high = 'Value'
                  other = 'Missing';
 value $missing ' ' = 'Missing'
              other = 'Value';
run;
proc freq data=sashelp.class;
 tables _all_/missing;
 format _character_ $missing. _numeric_ missing.;
 title 'Quick QC Check';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;
&lt;P&gt;Thanks to Don Henderson&amp;nbsp;for sharing this tip on sasCommunity.org.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Apr 2018 01:07:29 GMT</pubDate>
    <dc:creator>SAS_Tipster</dc:creator>
    <dc:date>2018-04-05T01:07:29Z</dc:date>
    <item>
      <title>SAS Tip: Quick Check for Missing or Invalid Data Using Formats</title>
      <link>https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Quick-Check-for-Missing-or-Invalid-Data-Using-Formats/m-p/442547#M148</link>
      <description>&lt;P&gt;You can use formats to do a quick check for missing or invalid data by creating formats that map the values and then using, for example, PROC FREQ to generate a simple report. In sample the code&amp;nbsp;below, numeric and character formats are created to group the values and then PROC FREQ is used to provide a simple/quick QC report.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the special variable list &lt;A href="http://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=p0wphcpsfgx6o7n1sjtqzizp1n39.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n0jmcol34grnien1b8mk4n9bjee8" target="_blank"&gt;_character_&lt;/A&gt; is used to assign the $missing. format to all the character variables&lt;/LI&gt;
&lt;LI&gt;the special variable list &lt;A href="http://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=p0wphcpsfgx6o7n1sjtqzizp1n39.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n0jmcol34grnien1b8mk4n9bjee8" target="_blank"&gt;_numeric_&lt;/A&gt; is used to assign the missing. format to all the numeric variables&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
 value missing low-high = 'Value'
                  other = 'Missing';
 value $missing ' ' = 'Missing'
              other = 'Value';
run;
proc freq data=sashelp.class;
 tables _all_/missing;
 format _character_ $missing. _numeric_ missing.;
 title 'Quick QC Check';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;
&lt;P&gt;Thanks to Don Henderson&amp;nbsp;for sharing this tip on sasCommunity.org.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 01:07:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Quick-Check-for-Missing-or-Invalid-Data-Using-Formats/m-p/442547#M148</guid>
      <dc:creator>SAS_Tipster</dc:creator>
      <dc:date>2018-04-05T01:07:29Z</dc:date>
    </item>
  </channel>
</rss>

