<?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: create data set in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/create-data-set/m-p/612963#M178956</link>
    <description>&lt;P&gt;I get 9 rows.&lt;/P&gt;
&lt;P&gt;Please find the data that I get.&lt;/P&gt;
&lt;P&gt;I want to ask what should I add to my code in order to get correct data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ABC 833 1&lt;BR /&gt;TT 835 2&lt;BR /&gt;"RRRRRR 8" "ABC 853" 3&lt;BR /&gt;"ABC 860" ABC 4&lt;BR /&gt;TT 703 5&lt;BR /&gt;TT 705 6&lt;BR /&gt;TT 855 7&lt;BR /&gt;TT 100-199 8&lt;BR /&gt;TT 300-399 9&lt;/P&gt;</description>
    <pubDate>Thu, 19 Dec 2019 09:33:06 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2019-12-19T09:33:06Z</dc:date>
    <item>
      <title>create data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-data-set/m-p/612957#M178953</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I am trying to create a data set with 11 rows.&lt;/P&gt;
&lt;P&gt;The outcome that I should get is 11 rows but I see that&amp;nbsp; I get only 9 rows.&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="background-color: #eaeaea; white-space: pre;"&gt;What is the solution for such problem please?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; Data ssort;
input source $ group $ ;
sortkey = _n_;
cards;
ABC 833
TT 835
RRRRRR	835
ABC	853
ABC	860
ABC 703
TT 703
TT 705
TT 855
TT 100-199
TT 300-399
;
Run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 09:19:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-data-set/m-p/612957#M178953</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2019-12-19T09:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: create data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-data-set/m-p/612962#M178955</link>
      <description>&lt;P&gt;What is the problem? No idea. When I run the program you supplied, I get 11 rows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unless, of course, that you have options OBS=9.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 09:31:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-data-set/m-p/612962#M178955</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2019-12-19T09:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: create data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-data-set/m-p/612963#M178956</link>
      <description>&lt;P&gt;I get 9 rows.&lt;/P&gt;
&lt;P&gt;Please find the data that I get.&lt;/P&gt;
&lt;P&gt;I want to ask what should I add to my code in order to get correct data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ABC 833 1&lt;BR /&gt;TT 835 2&lt;BR /&gt;"RRRRRR 8" "ABC 853" 3&lt;BR /&gt;"ABC 860" ABC 4&lt;BR /&gt;TT 703 5&lt;BR /&gt;TT 705 6&lt;BR /&gt;TT 855 7&lt;BR /&gt;TT 100-199 8&lt;BR /&gt;TT 300-399 9&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 09:33:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-data-set/m-p/612963#M178956</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2019-12-19T09:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: create data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-data-set/m-p/612964#M178957</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have added an INFILE statement to specify the delimiter.&lt;/P&gt;
&lt;P&gt;I have also replaced the tabulation by a space in line 3 (RRRRRR 835) because in all other cases, the delimiter is a space.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data ssort;
	infile cards dlm=" " truncover;
	input source $ group $;
	sortkey=_n_;
	cards;
ABC 833
TT 835
RRRRRR 835
ABC 853
ABC 860
ABC 703
TT 703
TT 705
TT 855
TT 100-199
TT 300-399
;
Run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Dec 2019 09:35:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-data-set/m-p/612964#M178957</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2019-12-19T09:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: create data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-data-set/m-p/612967#M178960</link>
      <description>&lt;P&gt;Rows 3, 4 &amp;amp; 5 have a tab as delimiter. You can see that when you insert a blank before the "space". The next value then either jumps by n characters (n is your tab setting) or stays in place.&lt;/P&gt;
&lt;P&gt;Make sure you have consistent delimiters in datalines, and use an infile statement with dlm='09'x when you want to use tabs.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 09:44:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-data-set/m-p/612967#M178960</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-19T09:44:41Z</dc:date>
    </item>
  </channel>
</rss>

