<?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 How to read records with missing data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-records-with-missing-data/m-p/155157#M30397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the below prog,how can i enforce SAS to read the second line/record containing the missing data for A2,A4?which option is best to use(missover/truncover/flowover/deleteover)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data temp;&lt;/P&gt;&lt;P&gt;input A1 A2 A3 $ A4 mmddyy10. a5 percent6.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 3 retd 12/12/2009 56.32%&lt;/P&gt;&lt;P&gt;2 tujb 54.32%&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=temp;&lt;/P&gt;&lt;P&gt;run; i&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jan 2014 04:03:12 GMT</pubDate>
    <dc:creator>Chikku</dc:creator>
    <dc:date>2014-01-29T04:03:12Z</dc:date>
    <item>
      <title>How to read records with missing data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-records-with-missing-data/m-p/155157#M30397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the below prog,how can i enforce SAS to read the second line/record containing the missing data for A2,A4?which option is best to use(missover/truncover/flowover/deleteover)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data temp;&lt;/P&gt;&lt;P&gt;input A1 A2 A3 $ A4 mmddyy10. a5 percent6.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 3 retd 12/12/2009 56.32%&lt;/P&gt;&lt;P&gt;2 tujb 54.32%&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=temp;&lt;/P&gt;&lt;P&gt;run; i&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 04:03:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-records-with-missing-data/m-p/155157#M30397</guid>
      <dc:creator>Chikku</dc:creator>
      <dc:date>2014-01-29T04:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to read records with missing data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-records-with-missing-data/m-p/155158#M30398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the attribute of record 2 that tells you that A2 and A4 are missing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 04:11:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-records-with-missing-data/m-p/155158#M30398</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-01-29T04:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to read records with missing data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-records-with-missing-data/m-p/155159#M30399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you will only be missing columns 2,4 and/or 5 the following might work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data temp (drop=x dummy);&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile cards truncover;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat a1 a2 12.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat a3 $8.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat a4 mmddyy10.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format a4 mmddyy10.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat a5 percent6.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; x=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input a1 a2 @;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if missing(a2) then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; input @1 dummy a3 a4 @;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; x+1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; else do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; input a3 a4 @;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if missing(a4) then x+1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if x gt 0 then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; input @1 dummy @;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; do _n_=2 to x;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input dummy @;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input a5;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;1 3 retd 12/12/2009 56.32%&lt;/P&gt;&lt;P&gt;2 tujb 54.32%&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 04:49:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-records-with-missing-data/m-p/155159#M30399</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-01-29T04:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to read records with missing data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-records-with-missing-data/m-p/155160#M30400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before the input statement use &lt;/P&gt;&lt;P&gt;INFILE CARDS&amp;nbsp; TRUNCOVER ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 09:36:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-records-with-missing-data/m-p/155160#M30400</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2014-01-30T09:36:01Z</dc:date>
    </item>
  </channel>
</rss>

