<?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 Please explain DSD and DLM=',' differences? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Please-explain-DSD-and-DLM-differences/m-p/146773#M262051</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'd like to understand the difference between DSD and DLM=',' options in the infile statement. &lt;STRONG&gt;Although, there is enough documentation&lt;/STRONG&gt;, long sentences are sometimes not precise in understanding the functionality. What i exactly want to know is that, it seems reading comma separated values with a DSD can incorrectly produce all missing values when reading a numeric variable or in other words when not used correctly.&amp;nbsp; Also, where and when you would choose to use either dlm= or dsd. And most importantly, i have also noticed some using both in the same infile statement. I wanna know on what circumstances would DSD read incorrectly, and the same is read correctly by dlm=. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please pardon me for asking basic question but if you don't mind the time to offer an easy answer with a simple/medium complex example, i'd most appreciate it. Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Jan 2015 18:09:50 GMT</pubDate>
    <dc:creator>Andygray</dc:creator>
    <dc:date>2015-01-30T18:09:50Z</dc:date>
    <item>
      <title>Please explain DSD and DLM=',' differences?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-explain-DSD-and-DLM-differences/m-p/146773#M262051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'd like to understand the difference between DSD and DLM=',' options in the infile statement. &lt;STRONG&gt;Although, there is enough documentation&lt;/STRONG&gt;, long sentences are sometimes not precise in understanding the functionality. What i exactly want to know is that, it seems reading comma separated values with a DSD can incorrectly produce all missing values when reading a numeric variable or in other words when not used correctly.&amp;nbsp; Also, where and when you would choose to use either dlm= or dsd. And most importantly, i have also noticed some using both in the same infile statement. I wanna know on what circumstances would DSD read incorrectly, and the same is read correctly by dlm=. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please pardon me for asking basic question but if you don't mind the time to offer an easy answer with a simple/medium complex example, i'd most appreciate it. Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 18:09:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-explain-DSD-and-DLM-differences/m-p/146773#M262051</guid>
      <dc:creator>Andygray</dc:creator>
      <dc:date>2015-01-30T18:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Please explain DSD and DLM=',' differences?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-explain-DSD-and-DLM-differences/m-p/146774#M262052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DSD does 3 things:&lt;/P&gt;&lt;P&gt;1. dlm=','&lt;/P&gt;&lt;P&gt;2. if there are two comma in a row, it sees a missing value.&lt;/P&gt;&lt;P&gt;3. if there are quotes around data elements, it removes them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dlm is just dlm. When using dlm= and dsd together, the value defined by dlm= overrides comma.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 18:16:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-explain-DSD-and-DLM-differences/m-p/146774#M262052</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2015-01-30T18:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Please explain DSD and DLM=',' differences?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-explain-DSD-and-DLM-differences/m-p/146775#M262053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DLM or the delimiter to specify what separates fields is a key piece in reading many data sets, not just comma separated. So the option lets you lead files where fields are separated by tabs, | , : and just about any other character you may want. You can also used multiple delimiters for a single file such as dlm = ',|' which would tread any comma or | not&amp;nbsp; as the start of a new field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DSD is critical when you have text entered that may include commas such as "This is a comment, that contains a comma"&lt;/P&gt;&lt;P&gt;without the DSD option this could be treated as two fields containing "This is a comment and that contains a comma"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It sounds like you have a concern about specific data, possibly numeric values with commas such as 123,345,789 if so there are other things that may be needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 18:29:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-explain-DSD-and-DLM-differences/m-p/146775#M262053</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-01-30T18:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Please explain DSD and DLM=',' differences?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-explain-DSD-and-DLM-differences/m-p/146776#M262054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok here is an example, that is getting me rather confused:&lt;/P&gt;&lt;P&gt;/*this code reads trxn numeric values correctly*/&lt;/P&gt;&lt;P&gt;data one;&lt;/P&gt;&lt;P&gt;infile datalines dlm=',' ; /*using dlm','*/&lt;/P&gt;&lt;P&gt;input cust_id&amp;nbsp;&amp;nbsp; date ddmmyy10. trxn nat $;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;1,10/01/2015,5000,dr&lt;/P&gt;&lt;P&gt;1,13/01/2015,2000,cr&lt;/P&gt;&lt;P&gt;1,15/01/2015,2000,dr&lt;/P&gt;&lt;P&gt;1,18/01/2015,2000,dr&lt;/P&gt;&lt;P&gt;1,21/01/2015,2000,cr&lt;/P&gt;&lt;P&gt;1,23/01/2015,2000,cr&lt;/P&gt;&lt;P&gt;1,24/01/2015,2000,cr&lt;/P&gt;&lt;P&gt;1,26/01/2015,2000,dr&lt;/P&gt;&lt;P&gt;1,28/01/2015,2000,dr&lt;/P&gt;&lt;P&gt;1,31/01/2015,2000,dr&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;whereas the following code below with DSD &lt;SPAN style="text-decoration: underline;"&gt;incorrectly&lt;/SPAN&gt; reads trxn and outputs all missing values&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data one;&lt;/P&gt;&lt;P&gt;infile datalines dsd;&lt;/P&gt;&lt;P&gt;input cust_id&amp;nbsp;&amp;nbsp; date ddmmyy10. trxn nat $;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;1,10/01/2015,5000,dr&lt;/P&gt;&lt;P&gt;1,13/01/2015,2000,cr&lt;/P&gt;&lt;P&gt;1,15/01/2015,2000,dr&lt;/P&gt;&lt;P&gt;1,18/01/2015,2000,dr&lt;/P&gt;&lt;P&gt;1,21/01/2015,2000,cr&lt;/P&gt;&lt;P&gt;1,23/01/2015,2000,cr&lt;/P&gt;&lt;P&gt;1,24/01/2015,2000,cr&lt;/P&gt;&lt;P&gt;1,26/01/2015,2000,dr&lt;/P&gt;&lt;P&gt;1,28/01/2015,2000,dr&lt;/P&gt;&lt;P&gt;1,31/01/2015,2000,dr&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, where did i go wrong in my understanding?Please help. I am using SAS EG 6.1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2015 05:05:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-explain-DSD-and-DLM-differences/m-p/146776#M262054</guid>
      <dc:creator>Andygray</dc:creator>
      <dc:date>2015-01-31T05:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Please explain DSD and DLM=',' differences?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-explain-DSD-and-DLM-differences/m-p/146777#M262055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're using a proper INformat then things will work (note the colon in front of the date informat).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data one;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile datalines dsd;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input cust_id date &lt;SPAN style="color: #800000; font-size: 12pt;"&gt;&lt;STRONG&gt;:&lt;/STRONG&gt;&lt;/SPAN&gt;ddmmyy10. trxn nat $;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format date ddmmyy10.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;1,10/01/2015,5000,dr&lt;/P&gt;&lt;P&gt;1,13/01/2015,2000,cr&lt;/P&gt;&lt;P&gt;1,15/01/2015,2000,dr&lt;/P&gt;&lt;P&gt;1,18/01/2015,2000,dr&lt;/P&gt;&lt;P&gt;1,21/01/2015,2000,cr&lt;/P&gt;&lt;P&gt;1,23/01/2015,2000,cr&lt;/P&gt;&lt;P&gt;1,24/01/2015,2000,cr&lt;/P&gt;&lt;P&gt;1,26/01/2015,2000,dr&lt;/P&gt;&lt;P&gt;1,28/01/2015,2000,dr&lt;/P&gt;&lt;P&gt;1,31/01/2015,2000,dr&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2015 06:40:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-explain-DSD-and-DLM-differences/m-p/146777#M262055</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2015-01-31T06:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Please explain DSD and DLM=',' differences?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-explain-DSD-and-DLM-differences/m-p/146778#M262056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My oh My!, missing out that one&lt;STRONG&gt; : &lt;/STRONG&gt;in front of the informat was the issue and made the difference? dear o dear, jeez, what does &lt;STRONG&gt;: &lt;/STRONG&gt;do here and it's functionality in general? Does that mean I will need to specify &lt;STRONG&gt;:&lt;/STRONG&gt; before an informat every single time I use dsd option in the infile statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2015 08:44:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-explain-DSD-and-DLM-differences/m-p/146778#M262056</guid>
      <dc:creator>Andygray</dc:creator>
      <dc:date>2015-01-31T08:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Please explain DSD and DLM=',' differences?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-explain-DSD-and-DLM-differences/m-p/146779#M262057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;4. If there is a delimiter ( comma )&amp;nbsp; in the quote , SAS will ignore it . E.X.&lt;/P&gt;&lt;P&gt;"xx,yy",zz&amp;nbsp; &lt;/P&gt;&lt;P&gt;SAS will take it as two variables not three.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So as far as I know they are not different . You can remove delimiter=','&amp;nbsp; when you are using DSD .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2015 08:50:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-explain-DSD-and-DLM-differences/m-p/146779#M262057</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-01-31T08:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Please explain DSD and DLM=',' differences?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-explain-DSD-and-DLM-differences/m-p/146780#M262058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As basic as this is, it's something I also happen to fall over from time to time. As a rule of thumb I would say either assign the variable a permanent informat (using a informat or attrib statement) or use the column modifier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From &lt;A href="http://support.sas.com/documentation/cdl/en/lestmtsref/67407/HTML/default/viewer.htm#n0lrz3gb7m9e4rn137op544ddg0v.htm#p1wk2kecsf6iz8n1ufug4i5pg6id" title="http://support.sas.com/documentation/cdl/en/lestmtsref/67407/HTML/default/viewer.htm#n0lrz3gb7m9e4rn137op544ddg0v.htm#p1wk2kecsf6iz8n1ufug4i5pg6id"&gt;SAS(R) 9.4 Statements: Reference, Third Edition&lt;/A&gt;&lt;/P&gt;&lt;H2 class="xis-title" style="font-family: lato, arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; color: #353535; font-size: 16.1279983520508px; margin-top: 0.5em; background-color: #ffffff;"&gt;&lt;EM&gt;Comparisons&lt;/EM&gt;&lt;/H2&gt;&lt;P class="xis-paragraph" style="font-family: lato, arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; margin-top: 1.4em; color: #353535; font-size: 13.4399995803833px; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;DIV class="xis-listTermDef"&gt;&lt;DIV class="xis-termDefPair" style="margin-top: 1.4em;"&gt;&lt;EM&gt;&lt;A id="n19b8ziqmwbsjun1l7dhuhe9uqxk" style="font-family: inherit;"&gt;&lt;/A&gt;&lt;/EM&gt;&lt;DIV class="xis-term"&gt;&lt;EM&gt;&lt;SPAN class="xis-windowItem" style="font-weight: bold;"&gt;How Modified List Input and Formatted Input Differ&lt;/SPAN&gt;&lt;/EM&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="xis-definition" style="margin-left: 3em;"&gt;&lt;/P&gt;&lt;DIV class="xis-paraSimpleFirst"&gt;&lt;EM&gt;&lt;SPAN class="xis-userSuppliedValue"&gt;Modified list input&lt;/SPAN&gt; has a scanning feature that can use informats to read data which are not aligned in columns. &lt;SPAN class="xis-userSuppliedValue"&gt;Formatted input&lt;/SPAN&gt; causes the pointer to move like that of column input to read a variable value. The pointer moves the length that is specified in the informat and stops at the next column.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;Reading above for formatted input "&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;input cust_id ... &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;ddmmyy10. &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;" should only be reading max. 10 columns, so even if "&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;The pointer &lt;STRONG&gt;moves the length that is specified in the informat&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;" supersedes the delimiter definition, the length of "10" should actually stop before the next delimiter of "comma" is in the string.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;I haven't found a really satisfying explanation in the docu which explains such behavior in a way that I feel I fully understand it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;data jansales1;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="xis-paraSimpleFirst"&gt;&lt;P&gt;&amp;nbsp; infile datalines truncover dsd;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input item&amp;nbsp; $10. amount comma5.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; datalines;&lt;/P&gt;&lt;P&gt;trucks 1,382&lt;/P&gt;&lt;P&gt;vans 1,235&lt;/P&gt;&lt;P&gt;sedans 2,391&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data jansales2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile datalines truncover dsd;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input item : $10. amount comma5.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; datalines;&lt;/P&gt;&lt;P&gt;trucks 1,382&lt;/P&gt;&lt;P&gt;vans 1,235&lt;/P&gt;&lt;P&gt;sedans 2,391&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data jansales3;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile datalines truncover dsd;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat item $10. amount comma5.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input item&amp;nbsp; amount;&lt;/P&gt;&lt;P&gt;&amp;nbsp; datalines;&lt;/P&gt;&lt;P&gt;trucks 1,382&lt;/P&gt;&lt;P&gt;vans 1,235&lt;/P&gt;&lt;P&gt;sedans 2,391&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="xis-paraSimpleFirst"&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Feb 2015 01:07:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-explain-DSD-and-DLM-differences/m-p/146780#M262058</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2015-02-01T01:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Please explain DSD and DLM=',' differences?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-explain-DSD-and-DLM-differences/m-p/146781#M262059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The difference between DSD and non-DSD that is causing the trouble with your example program is how it moves the cursor after reading a field.&amp;nbsp; Without DSD it moves past all of the delimiters that it sees before reading the next field.&amp;nbsp; With DSD it does not.&amp;nbsp; I assume this is what allows it to treat adjacent delimiters as indicating a missing value.&lt;/P&gt;&lt;P&gt;See this example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; one;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;infile&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; cards &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;dlm&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;','&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;TRUNCOVER&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: green; background: white;"&gt;/*using dlm','*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; cust_id&amp;nbsp;&amp;nbsp; date &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;ddmmyy10.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; A $ B $ C $;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;cards&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;1,10/01/2015,5000,dr&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; two;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;infile&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; cards &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;dsd&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;TRUNCOVER&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; cust_id&amp;nbsp;&amp;nbsp; date &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;ddmmyy10.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; A $ B $ C $;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;cards&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;1,10/01/2015,5000,dr&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;compare&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=one &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;compare&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=two; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Feb 2015 16:15:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-explain-DSD-and-DLM-differences/m-p/146781#M262059</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-02-01T16:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Please explain DSD and DLM=',' differences?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-explain-DSD-and-DLM-differences/m-p/146782#M262060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am here to learn. I tried your code and get table one with varaible C as missing, while table two with variable A as mssing, but still not understand why.&lt;/P&gt;&lt;P&gt;Could you explain how the cursor move between input date and A in these dlm=',' and dsd method?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 13:37:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-explain-DSD-and-DLM-differences/m-p/146782#M262060</guid>
      <dc:creator>Lin_Clare</dc:creator>
      <dc:date>2015-02-02T13:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Please explain DSD and DLM=',' differences?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Please-explain-DSD-and-DLM-differences/m-p/235854#M262061</link>
      <description>&lt;P&gt;The issue is when it starts to read A the cursor is pointing at the comma (column 13) in both cases.&lt;/P&gt;
&lt;P&gt;With the DSD option SAS takes this to mean that there is a missing value before that comma. Without the DSD option it will skip over the comma (the same way that normal list input where&amp;nbsp;space is the delimiter would skip over extra spaces in a line) and so the character after the comma is read as the value of A.&lt;/P&gt;
&lt;P&gt;You can see the same behaviour by reading a line that starts with the delimiter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data one ;
   infile cards dlm=',' ;
   input x $ ;
   put x= ;
cards;
,AAA
;;;;;
data two;
   infile cards dsd dlm=',';
   input x $ ;
   put x=;
cards;
,AAA
;;;;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Nov 2015 13:51:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Please-explain-DSD-and-DLM-differences/m-p/235854#M262061</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-11-21T13:51:53Z</dc:date>
    </item>
  </channel>
</rss>

