<?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: What use is the delimiter option in the INFILE statement? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/What-use-is-the-delimiter-option-in-the-INFILE-statement/m-p/431419#M106721</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/142145"&gt;@tomcmacdonald&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Doesn't SAS know to stop when it hits the delimiter?&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That's what it does. Like I said, you're likely doing something wrong. You need to show your code, log and ideally sample data that reflects your situation&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jan 2018 19:25:57 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-01-26T19:25:57Z</dc:date>
    <item>
      <title>What use is the delimiter option in the INFILE statement?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-use-is-the-delimiter-option-in-the-INFILE-statement/m-p/431408#M106716</link>
      <description>&lt;P&gt;Does it do anything? It seems to ignore it and treat my delimited file as a flat file.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 19:07:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-use-is-the-delimiter-option-in-the-INFILE-statement/m-p/431408#M106716</guid>
      <dc:creator>tomcmacdonald</dc:creator>
      <dc:date>2018-01-26T19:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: What use is the delimiter option in the INFILE statement?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-use-is-the-delimiter-option-in-the-INFILE-statement/m-p/431416#M106719</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/142145"&gt;@tomcmacdonald&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Does it do anything?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/142145"&gt;@tomcmacdonald&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;It seems to ignore it and treat my delimited file as a flat file.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You're using it incorrectly then.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 19:19:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-use-is-the-delimiter-option-in-the-INFILE-statement/m-p/431416#M106719</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-26T19:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: What use is the delimiter option in the INFILE statement?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-use-is-the-delimiter-option-in-the-INFILE-statement/m-p/431418#M106720</link>
      <description>&lt;P&gt;Why does it bleed over into the other column?&amp;nbsp; Doesn't SAS know to stop when it hits the delimiter?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 19:21:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-use-is-the-delimiter-option-in-the-INFILE-statement/m-p/431418#M106720</guid>
      <dc:creator>tomcmacdonald</dc:creator>
      <dc:date>2018-01-26T19:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: What use is the delimiter option in the INFILE statement?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-use-is-the-delimiter-option-in-the-INFILE-statement/m-p/431419#M106721</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/142145"&gt;@tomcmacdonald&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Doesn't SAS know to stop when it hits the delimiter?&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That's what it does. Like I said, you're likely doing something wrong. You need to show your code, log and ideally sample data that reflects your situation&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 19:25:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-use-is-the-delimiter-option-in-the-INFILE-statement/m-p/431419#M106721</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-26T19:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: What use is the delimiter option in the INFILE statement?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-use-is-the-delimiter-option-in-the-INFILE-statement/m-p/431424#M106722</link>
      <description>&lt;P&gt;I just find the fact that it's bleeding over to be pretty bizarre.&amp;nbsp; You figure SAS would throw an error at least.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 19:39:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-use-is-the-delimiter-option-in-the-INFILE-statement/m-p/431424#M106722</guid>
      <dc:creator>tomcmacdonald</dc:creator>
      <dc:date>2018-01-26T19:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: What use is the delimiter option in the INFILE statement?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-use-is-the-delimiter-option-in-the-INFILE-statement/m-p/431440#M106728</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/142145"&gt;@tomcmacdonald&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Why does it bleed over into the other column?&amp;nbsp; Doesn't SAS know to stop when it hits the delimiter?&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Show your log where you run the code Preferably in a code box opened with the forum's {I} icon. Also best would be to provide some example of the data file. Do not paste your data example into the main window but use a code box. The main message windows reformat pasted text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;there are potentially lots of interactions but the one I see here most frequently that sounds like what you describe is placing a format as part of the INPUT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have&lt;/P&gt;
&lt;P&gt;input var $10. it will read 10 characters pretty much.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;informat var $10. ;&lt;/P&gt;
&lt;P&gt;input var;&lt;/P&gt;
&lt;P&gt;will read var as charcter up to the first delimiter if the infile is declared with the correct delimiter.&lt;/P&gt;
&lt;P&gt;Other options such as DSD also have an impact.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 20:18:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-use-is-the-delimiter-option-in-the-INFILE-statement/m-p/431440#M106728</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-01-26T20:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: What use is the delimiter option in the INFILE statement?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-use-is-the-delimiter-option-in-the-INFILE-statement/m-p/431442#M106729</link>
      <description>&lt;P&gt;If SAS&amp;nbsp;&lt;EM&gt;can do&amp;nbsp;&lt;/EM&gt;what you&amp;nbsp;&lt;EM&gt;tell it to do&lt;/EM&gt;, there's no reason to throw an error. And there are valid reasons for mixing list and formatted input (I guess that is the reason for your problem) at certain times.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 20:24:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-use-is-the-delimiter-option-in-the-INFILE-statement/m-p/431442#M106729</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-01-26T20:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: What use is the delimiter option in the INFILE statement?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-use-is-the-delimiter-option-in-the-INFILE-statement/m-p/431445#M106731</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/142145"&gt;@tomcmacdonald&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Why does it bleed over into the other column?&amp;nbsp; Doesn't SAS know to stop when it hits the delimiter?&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Please look at these code examples. Does your code look at all like the first one?&lt;/P&gt;
&lt;P&gt;Note that the values of x and y vary between the two sets because the second is one preferred way to specify informats that respect delimiters;&lt;/P&gt;
&lt;PRE&gt;data example;
   infile datalines dlm=',';
   length x $ 5;
   informat y z $5.;
   /* a format on an input statement ignores the 
    delimiter because you are forcing a read of 5 columns
   */
   input x $5.  y z;
datalines;
123,abcd,fghijk
;
run;
data example2;
   infile datalines dlm=',';
   length x y z $5.;
   input x  y z;
datalines;
123,abcd,fghijk
;
run;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Jan 2018 20:34:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-use-is-the-delimiter-option-in-the-INFILE-statement/m-p/431445#M106731</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-01-26T20:34:22Z</dc:date>
    </item>
  </channel>
</rss>

