<?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 do i read missing values in middle and start using List Input style in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-i-read-missing-values-in-middle-and-start-using-List/m-p/276699#M55470</link>
    <description>&lt;P&gt;I just wanted to read this data only using List input style ....I am not able to read it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data test;&lt;BR /&gt;infile datalines missover;&lt;BR /&gt;input name $ age sal;&lt;BR /&gt;cards;&lt;BR /&gt;dharmu 25 40000&lt;BR /&gt;john &amp;nbsp; 450000&lt;BR /&gt;dharmu 26 40001&lt;BR /&gt;dharmu 25 40002&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 25 40003&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;proc print;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output-&lt;/P&gt;&lt;P&gt;SAS Output&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;Obs name age sal 1 2 3 4 5 &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;dharmu&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;40000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;john&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;450000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;dharmu&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;40001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;dharmu&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;40002&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;40003&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 12 Jun 2016 11:18:26 GMT</pubDate>
    <dc:creator>Dharmendra_All_</dc:creator>
    <dc:date>2016-06-12T11:18:26Z</dc:date>
    <item>
      <title>How do i read missing values in middle and start using List Input style</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-i-read-missing-values-in-middle-and-start-using-List/m-p/276699#M55470</link>
      <description>&lt;P&gt;I just wanted to read this data only using List input style ....I am not able to read it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data test;&lt;BR /&gt;infile datalines missover;&lt;BR /&gt;input name $ age sal;&lt;BR /&gt;cards;&lt;BR /&gt;dharmu 25 40000&lt;BR /&gt;john &amp;nbsp; 450000&lt;BR /&gt;dharmu 26 40001&lt;BR /&gt;dharmu 25 40002&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 25 40003&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;proc print;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output-&lt;/P&gt;&lt;P&gt;SAS Output&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;Obs name age sal 1 2 3 4 5 &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;dharmu&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;40000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;john&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;TD&gt;450000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;dharmu&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;40001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;dharmu&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;40002&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;40003&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 12 Jun 2016 11:18:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-i-read-missing-values-in-middle-and-start-using-List/m-p/276699#M55470</guid>
      <dc:creator>Dharmendra_All_</dc:creator>
      <dc:date>2016-06-12T11:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do i read missing values in middle and start using List Input style</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-i-read-missing-values-in-middle-and-start-using-List/m-p/276701#M55471</link>
      <description>&lt;P&gt;You need to use the period as a place holder for missing values in midde and start. &amp;nbsp;MISSOVER will handle missing at the end but you can as mark those as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your data cannot be modified you will have to come up with a scheme that allows you to figure which field is missing. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;2 fields and the first is numeric implies field 1 is missing&lt;/LI&gt;
&lt;LI&gt;2 fields and the first is char and second is numeric and out of age range implies field 2 is missing&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;You get the idea but it will be a bit messy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2016 16:20:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-i-read-missing-values-in-middle-and-start-using-List/m-p/276701#M55471</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-06-11T16:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do i read missing values in middle and start using List Input style</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-i-read-missing-values-in-middle-and-start-using-List/m-p/276835#M55509</link>
      <description>&lt;P&gt;Like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data WANT;
  infile datalines ;
  input;
  SCAN=1;
  if _infile_ ne: ' ' then do;
    NAME=scan(_infile_,1);
    SCAN+1;
  end;
  if 1 &amp;lt;= input(scan(_infile_,SCAN),3.) &amp;lt;= 120 then do;
    AGE=input(scan(_infile_,SCAN),3.) ;
    SCAN+1;
  end;
  SAL=input(scan(_infile_,SCAN),8.) ;
cards;
dharmu 25 40000
john   450000
peter 26 40001
Sue 25 40002
      25 40003
      25 40003
      25 
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Jun 2016 03:24:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-i-read-missing-values-in-middle-and-start-using-List/m-p/276835#M55509</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-06-13T03:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do i read missing values in middle and start using List Input style</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-i-read-missing-values-in-middle-and-start-using-List/m-p/278371#M56000</link>
      <description>&lt;P&gt;Thank you so much....&lt;/P&gt;&lt;P&gt;I am getting the right data but still I will try to understand the code...&lt;/P&gt;&lt;P&gt;being new into the system this code is complex to me but this is what I expected to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jun 2016 13:26:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-i-read-missing-values-in-middle-and-start-using-List/m-p/278371#M56000</guid>
      <dc:creator>Dharmendra_All_</dc:creator>
      <dc:date>2016-06-18T13:26:56Z</dc:date>
    </item>
  </channel>
</rss>

