<?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: I did not understand how datalines are read in the following program in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/I-did-not-understand-how-datalines-are-read-in-the-following/m-p/249389#M46915</link>
    <description>&lt;P&gt;In the DELIMITER= statement you specify list of individual delimiters, in this example you have two individual delimiters a and b.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The question now is, What if we have two or more consecutive delimiters? You have two cases for that:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1- &lt;STRONG&gt;DELIMITER=&lt;/STRONG&gt; alone&lt;BR /&gt;Any combination of consecutive delimiter are treated as only one delimiter. So if you deleted the statment &lt;STRONG&gt;DSD&amp;nbsp;&lt;/STRONG&gt;in the infile statment from your example.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In the dataset example: 1aa2ab3&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;will be&lt;SPAN&gt;&amp;nbsp;treated as:&amp;nbsp;&lt;STRONG&gt;1&amp;nbsp;&lt;/STRONG&gt;aa &lt;STRONG&gt;2&amp;nbsp;&lt;/STRONG&gt;ab &lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;as if&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;1,2,3&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2- &lt;STRONG&gt;DELIMITER=&lt;/STRONG&gt; with &lt;STRONG&gt;DSD&lt;/STRONG&gt;&lt;BR /&gt;Consecutive delimiters are treated individually even if they are consecutive.&lt;/P&gt;
&lt;P&gt;In the dataset example: 1aa2ab3&lt;BR /&gt;will be treated as:&amp;nbsp;&lt;STRONG&gt;1&lt;/STRONG&gt; a &lt;STRONG&gt;Missing&lt;/STRONG&gt; a &lt;STRONG&gt;2&lt;/STRONG&gt; a &lt;STRONG&gt;Missing&lt;/STRONG&gt; b &lt;STRONG&gt;3&lt;/STRONG&gt;&lt;BR /&gt;as if &lt;BR /&gt;1, , 2, , 3&lt;/P&gt;</description>
    <pubDate>Thu, 11 Feb 2016 09:27:12 GMT</pubDate>
    <dc:creator>mohamed_zaki</dc:creator>
    <dc:date>2016-02-11T09:27:12Z</dc:date>
    <item>
      <title>I did not understand how datalines are read in the following program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-did-not-understand-how-datalines-are-read-in-the-following/m-p/249381#M46911</link>
      <description>&lt;PRE&gt;data nums;
    infile datalines dsd delimiter='ab';
    input X Y Z;
    datalines;
1aa2ab3
4b5bab6
7a8b9
;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Output:&lt;/PRE&gt;&lt;PRE&gt; The SAS System                        

                       OBS    X    Y    Z

                        1     1    .    2
                        2     4    5    .
                        3     7    8    9&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Feb 2016 08:39:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-did-not-understand-how-datalines-are-read-in-the-following/m-p/249381#M46911</guid>
      <dc:creator>Jeevan007</dc:creator>
      <dc:date>2016-02-11T08:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: I did not understand how datalines are read in the following program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-did-not-understand-how-datalines-are-read-in-the-following/m-p/249384#M46912</link>
      <description>&lt;P&gt;This example is explained here:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000146932.htm#a000177189" target="_self"&gt;Example 1: Changing How Delimiters Are Treated&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 08:55:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-did-not-understand-how-datalines-are-read-in-the-following/m-p/249384#M46912</guid>
      <dc:creator>mohamed_zaki</dc:creator>
      <dc:date>2016-02-11T08:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: I did not understand how datalines are read in the following program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-did-not-understand-how-datalines-are-read-in-the-following/m-p/249386#M46913</link>
      <description>&lt;P&gt;I have read that. I did not understand it.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 09:07:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-did-not-understand-how-datalines-are-read-in-the-following/m-p/249386#M46913</guid>
      <dc:creator>Jeevan007</dc:creator>
      <dc:date>2016-02-11T09:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: I did not understand how datalines are read in the following program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-did-not-understand-how-datalines-are-read-in-the-following/m-p/249389#M46915</link>
      <description>&lt;P&gt;In the DELIMITER= statement you specify list of individual delimiters, in this example you have two individual delimiters a and b.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The question now is, What if we have two or more consecutive delimiters? You have two cases for that:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1- &lt;STRONG&gt;DELIMITER=&lt;/STRONG&gt; alone&lt;BR /&gt;Any combination of consecutive delimiter are treated as only one delimiter. So if you deleted the statment &lt;STRONG&gt;DSD&amp;nbsp;&lt;/STRONG&gt;in the infile statment from your example.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In the dataset example: 1aa2ab3&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;will be&lt;SPAN&gt;&amp;nbsp;treated as:&amp;nbsp;&lt;STRONG&gt;1&amp;nbsp;&lt;/STRONG&gt;aa &lt;STRONG&gt;2&amp;nbsp;&lt;/STRONG&gt;ab &lt;STRONG&gt;3&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;as if&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;1,2,3&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2- &lt;STRONG&gt;DELIMITER=&lt;/STRONG&gt; with &lt;STRONG&gt;DSD&lt;/STRONG&gt;&lt;BR /&gt;Consecutive delimiters are treated individually even if they are consecutive.&lt;/P&gt;
&lt;P&gt;In the dataset example: 1aa2ab3&lt;BR /&gt;will be treated as:&amp;nbsp;&lt;STRONG&gt;1&lt;/STRONG&gt; a &lt;STRONG&gt;Missing&lt;/STRONG&gt; a &lt;STRONG&gt;2&lt;/STRONG&gt; a &lt;STRONG&gt;Missing&lt;/STRONG&gt; b &lt;STRONG&gt;3&lt;/STRONG&gt;&lt;BR /&gt;as if &lt;BR /&gt;1, , 2, , 3&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 09:27:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-did-not-understand-how-datalines-are-read-in-the-following/m-p/249389#M46915</guid>
      <dc:creator>mohamed_zaki</dc:creator>
      <dc:date>2016-02-11T09:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: I did not understand how datalines are read in the following program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-did-not-understand-how-datalines-are-read-in-the-following/m-p/249390#M46916</link>
      <description>&lt;P&gt;What part don't you understand?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Things you should understand:&lt;/P&gt;
&lt;P&gt;1. What are the delimiters?&lt;/P&gt;
&lt;P&gt;2. What does the DSD option do?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try the code with the above removed and variations on the DLM to help figure out what's going on.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 09:17:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-did-not-understand-how-datalines-are-read-in-the-following/m-p/249390#M46916</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-02-11T09:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: I did not understand how datalines are read in the following program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-did-not-understand-how-datalines-are-read-in-the-following/m-p/249401#M46917</link>
      <description>&lt;P&gt;Thanks a lot!!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 09:57:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-did-not-understand-how-datalines-are-read-in-the-following/m-p/249401#M46917</guid>
      <dc:creator>Jeevan007</dc:creator>
      <dc:date>2016-02-11T09:57:14Z</dc:date>
    </item>
  </channel>
</rss>

