<?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: use dlm and dsd in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/use-dlm-and-dsd/m-p/709243#M26692</link>
    <description>&lt;P&gt;DSD is required to treat two consecutive delimiters as a missing value as well as to allow the delimiter characters to appear as part of a value inside quoted text. Without the DSD option list input as you are using will treat consecutive delimiters as a single delimiter and the values would be read incorrectly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The explicit DLM is going to be needed since you apparently have a character other than the comma as the delimiter. Comma is the default delimiter.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jan 2021 16:30:40 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-01-04T16:30:40Z</dc:date>
    <item>
      <title>use dlm and dsd</title>
      <link>https://communities.sas.com/t5/New-SAS-User/use-dlm-and-dsd/m-p/709241#M26691</link>
      <description>&lt;P&gt;For an external file employee.txt like:&lt;/P&gt;
&lt;P&gt;susan*12/29/1970*10&lt;BR /&gt;micheal**6&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data employee;&lt;BR /&gt;infile "/special path/employee.txt" dlm='*' dsd;&lt;BR /&gt;input employee $ bdate: mmddyy10. years;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;both dlm and dsd are needed for proper input. However, there is no comma in the input data but only two stars for a missed value. Why is a dsd required? I read a few documents and posters. It seems it is still confused.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 16:21:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/use-dlm-and-dsd/m-p/709241#M26691</guid>
      <dc:creator>anming</dc:creator>
      <dc:date>2021-01-04T16:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: use dlm and dsd</title>
      <link>https://communities.sas.com/t5/New-SAS-User/use-dlm-and-dsd/m-p/709243#M26692</link>
      <description>&lt;P&gt;DSD is required to treat two consecutive delimiters as a missing value as well as to allow the delimiter characters to appear as part of a value inside quoted text. Without the DSD option list input as you are using will treat consecutive delimiters as a single delimiter and the values would be read incorrectly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The explicit DLM is going to be needed since you apparently have a character other than the comma as the delimiter. Comma is the default delimiter.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 16:30:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/use-dlm-and-dsd/m-p/709243#M26692</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-01-04T16:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: use dlm and dsd</title>
      <link>https://communities.sas.com/t5/New-SAS-User/use-dlm-and-dsd/m-p/709248#M26693</link>
      <description>&lt;P&gt;The default is to use space as the delimiter and to treat multiple delimiters as one.&amp;nbsp; That makes sense when space is the delimiter because you normally use multiple spaces to make the data columns align for when humans view the file.&amp;nbsp; To treat adjacent delimiters as marking a missing value you need the DSD option.&amp;nbsp; But when you use the DSD option the default delimiter is now going to be a comma instead of space.&amp;nbsp; So to use asterisk instead of comma you need to use the DLM option to override the default delimiter.&amp;nbsp; Note that the DSD option will also change how quotes are treated.&amp;nbsp; Quotes around values are removed and any delimiter enclosed in quotes is treated as part of the data and not as a delimiter.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 17:05:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/use-dlm-and-dsd/m-p/709248#M26693</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-01-04T17:05:41Z</dc:date>
    </item>
  </channel>
</rss>

