<?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 Infile Delimiter Confusion in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Infile-Delimiter-Confusion/m-p/313034#M67952</link>
    <description>&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Hi,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Silly confusion! &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;I've a file to read where fields are wrapped using quotes ("Field-Value") and fields are seperated by comma(,). What is the suitable DLM option to be used ?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;I tried using DLMSTR='","' -&amp;gt; It worked fine untill there was a null value for a field.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Example Record in the file is as below &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;"A","B","C","D","","F","","H",""&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;I want to read above record so that I get below output, where F1-F9 are variables.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;F1=A, F2=B, F3=C, F4=D, F5= (Blank), F6=F, F7= (Blank), F8=H, F9= (Blank)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2016 12:24:39 GMT</pubDate>
    <dc:creator>nrk1787db1</dc:creator>
    <dc:date>2016-11-21T12:24:39Z</dc:date>
    <item>
      <title>Infile Delimiter Confusion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Infile-Delimiter-Confusion/m-p/313034#M67952</link>
      <description>&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Hi,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Silly confusion! &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;I've a file to read where fields are wrapped using quotes ("Field-Value") and fields are seperated by comma(,). What is the suitable DLM option to be used ?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;I tried using DLMSTR='","' -&amp;gt; It worked fine untill there was a null value for a field.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Example Record in the file is as below &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;"A","B","C","D","","F","","H",""&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;I want to read above record so that I get below output, where F1-F9 are variables.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;F1=A, F2=B, F3=C, F4=D, F5= (Blank), F6=F, F7= (Blank), F8=H, F9= (Blank)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2016 12:24:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Infile-Delimiter-Confusion/m-p/313034#M67952</guid>
      <dc:creator>nrk1787db1</dc:creator>
      <dc:date>2016-11-21T12:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Infile Delimiter Confusion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Infile-Delimiter-Confusion/m-p/313041#M67953</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DSD is what you are looking for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile datalines dsd missover;
input (A B C D E F G H I) (:$8.);
datalines;
"A","B","C","D","","F","","H",""
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Nov 2016 12:33:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Infile-Delimiter-Confusion/m-p/313041#M67953</guid>
      <dc:creator>Loko</dc:creator>
      <dc:date>2016-11-21T12:33:36Z</dc:date>
    </item>
  </channel>
</rss>

