<?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: Diffrence between infile method and list input method when using missover and truncover? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Diffrence-between-infile-method-and-list-input-method-when-using/m-p/472158#M121015</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/51397"&gt;@ramchinna24&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am not after the diffrence between missover and truncover. I am&amp;nbsp;looking for the&amp;nbsp; difference in the results when we read data from external file(eg text file with data control methods) and when we create data using control methods(missover truncover etc).&amp;nbsp; still if you do not understand my question I will explain in more details.&lt;/P&gt;
&lt;P&gt;Thank you for your response.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Without an explicit file, specific options,&amp;nbsp;the input statement and informats used&amp;nbsp;the "difference" can be very hard to explain.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When reading your file do you check the log to see if you get any "invalid data" messages? Or "SAS went to next line" or such?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jun 2018 15:30:18 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-06-21T15:30:18Z</dc:date>
    <item>
      <title>Diffrence between infile method and list input method when using missover and truncover?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Diffrence-between-infile-method-and-list-input-method-when-using/m-p/471938#M120924</link>
      <description>&lt;DIV id="sidebar" class="ask-sidebar"&gt;
&lt;DIV id="scroller"&gt;
&lt;DIV id="how-to-format" class="module newuser sidebar-help"&gt;
&lt;UL&gt;
&lt;LI&gt;&amp;nbsp;Hi,&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; I just want to know the difference between following codes and its &lt;BR /&gt; results:&lt;BR /&gt; *get code from external file.;&lt;BR /&gt;&lt;BR /&gt; DATA TEST;&lt;BR /&gt; INFILE 'C:\OVERTEST.TXT' (*)OVER;&lt;BR /&gt; INPUT TEST_NUM 5.;&lt;BR /&gt; RUN;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; PS:(*)over means the options we mentioned above. (FLOWOVER/MISSOVER/TRUNCOVER/SCANOVER/STOPOVER)&lt;BR /&gt; &lt;BR /&gt; Results:&lt;BR /&gt; OBS FLOWOVER MISSOVER TRUNCOVER STOPOVER&lt;BR /&gt; 1 55555 55555 55555 55555&lt;BR /&gt; 2 22 . 1 &lt;BR /&gt; 3 4444 . 22&lt;BR /&gt; 4 55555 . 33&lt;BR /&gt; 5 . 4444&lt;BR /&gt; 6 55555 55555&lt;BR /&gt; &lt;BR /&gt; *Second code:&lt;BR /&gt; &lt;BR /&gt; DATA TEST;&lt;BR /&gt; INFILE datalines (*)OVER;&lt;BR /&gt; INPUT TESTNUM 5.;&lt;BR /&gt; datalines;&lt;BR /&gt; 55555&lt;BR /&gt; 1&lt;BR /&gt; 22&lt;BR /&gt; 333&lt;BR /&gt; 4444&lt;BR /&gt; 55555&lt;BR /&gt; ;&lt;BR /&gt; RUN;&lt;BR /&gt; &lt;BR /&gt; its results for all options(flowover missover,truncover,stopover).&lt;BR /&gt; Testnum:&lt;BR /&gt; 55555&lt;BR /&gt; 1&lt;BR /&gt; 22&lt;BR /&gt; 33&lt;BR /&gt; 4444&lt;BR /&gt; 55555;&lt;BR /&gt; /*Can any one please what is the difference between these?Thank you.;*/&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 20 Jun 2018 22:10:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Diffrence-between-infile-method-and-list-input-method-when-using/m-p/471938#M120924</guid>
      <dc:creator>ramchinna24</dc:creator>
      <dc:date>2018-06-20T22:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Diffrence between infile method and list input method when using missover and truncover?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Diffrence-between-infile-method-and-list-input-method-when-using/m-p/471942#M120926</link>
      <description>&lt;P&gt;So many places where this is already covered, like &lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/What-is-the-difference-between-Missover-and-Truncover/m-p/31888#M6121" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;If you want an explanation, do your research, read the documentation and then ask questions if anything is unclear.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 23:50:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Diffrence-between-infile-method-and-list-input-method-when-using/m-p/471942#M120926</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-06-20T23:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Diffrence between infile method and list input method when using missover and truncover?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Diffrence-between-infile-method-and-list-input-method-when-using/m-p/471943#M120927</link>
      <description>&lt;P&gt;I am not after the diffrence between missover and truncover. I am&amp;nbsp;looking for the&amp;nbsp; difference in the results when we read data from external file(eg text file with data control methods) and when we create data using control methods(missover truncover etc).&amp;nbsp; still if you do not understand my question I will explain in more details.&lt;/P&gt;
&lt;P&gt;Thank you for your response.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 23:55:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Diffrence-between-infile-method-and-list-input-method-when-using/m-p/471943#M120927</guid>
      <dc:creator>ramchinna24</dc:creator>
      <dc:date>2018-06-20T23:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Diffrence between infile method and list input method when using missover and truncover?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Diffrence-between-infile-method-and-list-input-method-when-using/m-p/471953#M120934</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/51397"&gt;@ramchinna24&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am not after the diffrence between missover and truncover. I am&amp;nbsp;looking for the&amp;nbsp; difference in the results when we read data from external file(eg text file with data control methods) and when we create data using control methods(missover truncover etc).&amp;nbsp; still if you do not understand my question I will explain in more details.&lt;/P&gt;
&lt;P&gt;Thank you for your response.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Still not getting the question. If you want to test the differences for a specific data file then run the code and check the results.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 00:32:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Diffrence-between-infile-method-and-list-input-method-when-using/m-p/471953#M120934</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-06-21T00:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Diffrence between infile method and list input method when using missover and truncover?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Diffrence-between-infile-method-and-list-input-method-when-using/m-p/471961#M120941</link>
      <description>&lt;P&gt;Probably I should ask why the difference. anyways, I guess its hard explain here. Thank you guys for your response.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 01:05:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Diffrence-between-infile-method-and-list-input-method-when-using/m-p/471961#M120941</guid>
      <dc:creator>ramchinna24</dc:creator>
      <dc:date>2018-06-21T01:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Diffrence between infile method and list input method when using missover and truncover?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Diffrence-between-infile-method-and-list-input-method-when-using/m-p/471965#M120942</link>
      <description>&lt;P&gt;1. If I understand correctly, this is a odd question: Options work the same way whether you read a file or cards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. As suggested, just test yourself when you have this kind of questions.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  file "%sysfunc(pathname(WORK))\t.txt"  ;
  put 'A B     ';
  put 'A       ';
  put 'A B     ';
run; 
    
data FILE_EMPTY;
  infile "%sysfunc(pathname(WORK))\t.txt" ;
  input VAR1 $ VAR2 $;
run; 
           
data FILE_MISSOVER;
  infile "%sysfunc(pathname(WORK))\t.txt" missover;
  input VAR1 $ VAR2 $;
run; 

data FILE_STOPOVER;
  infile "%sysfunc(pathname(WORK))\t.txt" stopover;
  input VAR1 $ VAR2 $;
run; 

data CARDS_EMPTY;
  infile cards ;
  input VAR1 $ VAR2 $;
cards;
A B
A
A B
run; 
                
data CARDS_MISSOVER;
  infile cards missover;
  input VAR1 $ VAR2 $;
cards;
A B
A
A B
run; 
                 
data CARDS_STOPOVER;
  infile cards stopover;
  input VAR1 $ VAR2 $;
cards;
A B
A 
A B
run; 
                        
proc print data=FILE_EMPTY     noobs; title 'FILE_EMPTY    '; run;
proc print data=CARDS_EMPTY    noobs; title 'CARDS_EMPTY   '; run;
proc print data=FILE_MISSOVER  noobs; title 'FILE_MISSOVER '; run;
proc print data=CARDS_MISSOVER noobs; title 'CARDS_MISSOVER'; run;
proc print data=FILE_STOPOVER  noobs; title 'FILE_STOPOVER '; run;
proc print data=CARDS_STOPOVER noobs; title 'CARDS_STOPOVER'; run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;TABLE class="systitleandfootercontainer" summary="Page Layout" width="100%" frame="void" rules="none" cellspacing="1" cellpadding="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="c systemtitle"&gt;FILE_EMPTY&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;BR /&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Print: Data Set WORK.FILE_EMPTY" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;&lt;COLGROUP&gt; &lt;COL /&gt; &lt;COL /&gt;&lt;/COLGROUP&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="l header" scope="col"&gt;VAR1&lt;/TH&gt;
&lt;TH class="l header" scope="col"&gt;VAR2&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;A&lt;/TD&gt;
&lt;TD class="l data"&gt;B&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;A&lt;/TD&gt;
&lt;TD class="l data"&gt;A&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="branch"&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR size="3" /&gt;
&lt;TABLE class="systitleandfootercontainer" summary="Page Layout" width="100%" frame="void" rules="none" cellspacing="1" cellpadding="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="c systemtitle"&gt;CARDS_EMPTY&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;BR /&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Print: Data Set WORK.CARDS_EMPTY" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;&lt;COLGROUP&gt; &lt;COL /&gt; &lt;COL /&gt;&lt;/COLGROUP&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="l header" scope="col"&gt;VAR1&lt;/TH&gt;
&lt;TH class="l header" scope="col"&gt;VAR2&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;A&lt;/TD&gt;
&lt;TD class="l data"&gt;B&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;A&lt;/TD&gt;
&lt;TD class="l data"&gt;A&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="branch"&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR size="3" /&gt;
&lt;TABLE class="systitleandfootercontainer" summary="Page Layout" width="100%" frame="void" rules="none" cellspacing="1" cellpadding="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="c systemtitle"&gt;FILE_MISSOVER&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;BR /&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Print: Data Set WORK.FILE_MISSOVER" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;&lt;COLGROUP&gt; &lt;COL /&gt; &lt;COL /&gt;&lt;/COLGROUP&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="l header" scope="col"&gt;VAR1&lt;/TH&gt;
&lt;TH class="l header" scope="col"&gt;VAR2&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;A&lt;/TD&gt;
&lt;TD class="l data"&gt;B&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;A&lt;/TD&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;A&lt;/TD&gt;
&lt;TD class="l data"&gt;B&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="branch"&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR size="3" /&gt;
&lt;TABLE class="systitleandfootercontainer" summary="Page Layout" width="100%" frame="void" rules="none" cellspacing="1" cellpadding="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="c systemtitle"&gt;CARDS_MISSOVER&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;BR /&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Print: Data Set WORK.CARDS_MISSOVER" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;&lt;COLGROUP&gt; &lt;COL /&gt; &lt;COL /&gt;&lt;/COLGROUP&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="l header" scope="col"&gt;VAR1&lt;/TH&gt;
&lt;TH class="l header" scope="col"&gt;VAR2&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;A&lt;/TD&gt;
&lt;TD class="l data"&gt;B&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;A&lt;/TD&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;A&lt;/TD&gt;
&lt;TD class="l data"&gt;B&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="branch"&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR size="3" /&gt;
&lt;TABLE class="systitleandfootercontainer" summary="Page Layout" width="100%" frame="void" rules="none" cellspacing="1" cellpadding="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="c systemtitle"&gt;FILE_STOPOVER&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;BR /&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Print: Data Set WORK.FILE_STOPOVER" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;&lt;COLGROUP&gt; &lt;COL /&gt; &lt;COL /&gt;&lt;/COLGROUP&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="l header" scope="col"&gt;VAR1&lt;/TH&gt;
&lt;TH class="l header" scope="col"&gt;VAR2&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;A&lt;/TD&gt;
&lt;TD class="l data"&gt;B&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="branch"&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR size="3" /&gt;
&lt;TABLE class="systitleandfootercontainer" summary="Page Layout" width="100%" frame="void" rules="none" cellspacing="1" cellpadding="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="c systemtitle"&gt;CARDS_STOPOVER&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;BR /&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Print: Data Set WORK.CARDS_STOPOVER" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;&lt;COLGROUP&gt; &lt;COL /&gt; &lt;COL /&gt;&lt;/COLGROUP&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="l header" scope="col"&gt;VAR1&lt;/TH&gt;
&lt;TH class="l header" scope="col"&gt;VAR2&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;A&lt;/TD&gt;
&lt;TD class="l data"&gt;B&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 Jun 2018 01:59:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Diffrence-between-infile-method-and-list-input-method-when-using/m-p/471965#M120942</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-06-21T01:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Diffrence between infile method and list input method when using missover and truncover?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Diffrence-between-infile-method-and-list-input-method-when-using/m-p/472158#M121015</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/51397"&gt;@ramchinna24&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am not after the diffrence between missover and truncover. I am&amp;nbsp;looking for the&amp;nbsp; difference in the results when we read data from external file(eg text file with data control methods) and when we create data using control methods(missover truncover etc).&amp;nbsp; still if you do not understand my question I will explain in more details.&lt;/P&gt;
&lt;P&gt;Thank you for your response.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Without an explicit file, specific options,&amp;nbsp;the input statement and informats used&amp;nbsp;the "difference" can be very hard to explain.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When reading your file do you check the log to see if you get any "invalid data" messages? Or "SAS went to next line" or such?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 15:30:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Diffrence-between-infile-method-and-list-input-method-when-using/m-p/472158#M121015</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-06-21T15:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Diffrence between infile method and list input method when using missover and truncover?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Diffrence-between-infile-method-and-list-input-method-when-using/m-p/472161#M121017</link>
      <description>&lt;P&gt;When you are reading from in-line data (DATALINES a.k.a. CARDS) they are padded to a multiple of 80 bytes. Like real keypunch cards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try making two different external files. One with trimmed lines and one with 80 column lines.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  length line $80 ;
  do line=
'55555'
,'1'
,'22'
,'333'
,'4444'
,'55555'
  ;
  len=length(line);
  file 'short.txt' ;
  put line $varying80. len ;
  file 'fixed.txt' ;
  put line $80. ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You should see that&amp;nbsp; the one with fixed length lines behaves the same as the in-line data.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 15:44:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Diffrence-between-infile-method-and-list-input-method-when-using/m-p/472161#M121017</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-06-21T15:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Diffrence between infile method and list input method when using missover and truncover?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Diffrence-between-infile-method-and-list-input-method-when-using/m-p/472310#M121091</link>
      <description>&lt;P&gt;Thank you&amp;nbsp; I understood this. My question is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;code1:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;DATA TEST;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;INFILE datalines (*)OVER;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;INPUT TESTNUM 5.;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;datalines;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;55555&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;22&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;333&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4444&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;55555&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;code2:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;DATA TEST;&lt;BR /&gt;INFILE&amp;nbsp;"/r00/home/ram.txt" (*)OVER;&lt;BR /&gt;INPUT TESTNUM 5.;&lt;BR /&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These code1 and code2 should give same results right. what is the reason that they are not providing same results when we use control methods for eg: missover?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 22:14:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Diffrence-between-infile-method-and-list-input-method-when-using/m-p/472310#M121091</guid>
      <dc:creator>ramchinna24</dc:creator>
      <dc:date>2018-06-21T22:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Diffrence between infile method and list input method when using missover and truncover?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Diffrence-between-infile-method-and-list-input-method-when-using/m-p/472335#M121102</link>
      <description>&lt;P&gt;The INPUT statement will only work the same if it is reading the same thing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the file has 80 characters on each line (that is it is padded with spaces) then SAS will treat it same as the 80 characters that sees when reading in-line data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example consider what will happen with the MISSOVER option when you try to read 5 characters from a line that only has 3 characters on it.&amp;nbsp; The value will be set to missing.&amp;nbsp; That is the whole point of the MISSOVER option.&amp;nbsp; But when you are reading from in-line data the input buffer is padded to the next multiple of 80 bytes. So the line has 80 characters on it and the input sees the three digts and two spaces and knows how to read that.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 00:17:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Diffrence-between-infile-method-and-list-input-method-when-using/m-p/472335#M121102</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-06-22T00:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Diffrence between infile method and list input method when using missover and truncover?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Diffrence-between-infile-method-and-list-input-method-when-using/m-p/472531#M121171</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;When you are reading from in-line data (DATALINES a.k.a. CARDS) they are padded to a multiple of 80 bytes. Like real keypunch cards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This option is controllable with the system option CARDIMAGE or NOCARDIMAGE. If the option is set to NOCARDIMAGE then lines can be longer than 80-byte records. NOCARDIMAGE seems to be the default installation option, at least in SAS 9.4&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 16:13:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Diffrence-between-infile-method-and-list-input-method-when-using/m-p/472531#M121171</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-06-22T16:13:31Z</dc:date>
    </item>
  </channel>
</rss>

