<?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: infile comma delimiter embedded blanks missing values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/infile-comma-delimiter-embedded-blanks-missing-values/m-p/446941#M112214</link>
    <description>&lt;P&gt;When using delimiters, such as commas, don't try to give SAS instructions about how many characters to read.&amp;nbsp; Instead, set a maximum length and let SAS figure out which characters to read.&amp;nbsp; For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;data test;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT size="2"&gt;infile pumpkins&lt;/FONT&gt; &lt;FONT size="2"&gt;dsd;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;length name $ 16;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;informat EnterDate mmddyy10.;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;input Name Age Type $ EnterDate j1-j5;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;format EnterDate mmddyy10.;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Mar 2018 21:20:50 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2018-03-19T21:20:50Z</dc:date>
    <item>
      <title>infile comma delimiter embedded blanks missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-comma-delimiter-embedded-blanks-missing-values/m-p/446937#M112213</link>
      <description>&lt;P&gt;Alicia Grossman,13,C,10-28-2008,7.8,6.5,7.2,8.0,7.9&lt;/P&gt;&lt;P&gt;Matthew Lee,9,D,10-30-2008,6.5,5.9,6.8,6.0,8.1&lt;/P&gt;&lt;P&gt;Elizabeth Garcia,10,C,10-29-2008,8.9,7.9,8.5,9.0,&lt;/P&gt;&lt;P&gt;,6,D,10-30-2008,6.7,5.6,4.9,5.2,6.1&lt;/P&gt;&lt;P&gt;Jose Martinez,7,D,10-31-2008,8.9,,10.0,9.7,9.0&lt;/P&gt;&lt;P&gt;Brian Williams,11,C,10-29-2008,7.8,8.4,8.5,7.9,8.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Have to read this in with infile cannot get the right combination of options to deal with missing values, comma delimited,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;embedded blanks for name, length statement or informat for name &lt;/SPAN&gt;&lt;SPAN&gt;.&amp;nbsp; Tried as many combinations as I could come up with. here is most recent attempt.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DATA Pumkins2;&lt;BR /&gt;infile pumpkins DLM= ',';&lt;BR /&gt;input Name &amp;amp; $16. Age 2. Type $ EnterDate mmddyy10. j1-j5;&lt;BR /&gt;format EnterDate mmddyy10.;&lt;BR /&gt;RUN;&lt;BR /&gt;PROC PRINT;&lt;BR /&gt;RUN;&lt;BR /&gt;title;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 21:05:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-comma-delimiter-embedded-blanks-missing-values/m-p/446937#M112213</guid>
      <dc:creator>RickyS</dc:creator>
      <dc:date>2018-03-19T21:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: infile comma delimiter embedded blanks missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-comma-delimiter-embedded-blanks-missing-values/m-p/446941#M112214</link>
      <description>&lt;P&gt;When using delimiters, such as commas, don't try to give SAS instructions about how many characters to read.&amp;nbsp; Instead, set a maximum length and let SAS figure out which characters to read.&amp;nbsp; For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;data test;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT size="2"&gt;infile pumpkins&lt;/FONT&gt; &lt;FONT size="2"&gt;dsd;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;length name $ 16;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;informat EnterDate mmddyy10.;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;input Name Age Type $ EnterDate j1-j5;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;format EnterDate mmddyy10.;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 21:20:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-comma-delimiter-embedded-blanks-missing-values/m-p/446941#M112214</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-03-19T21:20:50Z</dc:date>
    </item>
  </channel>
</rss>

