<?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 How to create multiple dataset from one dataset? in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-create-multiple-dataset-from-one-dataset/m-p/170038#M1929</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Can anyone tell me what would be the code for creating multiple dataset from one dataset in one data step?&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Example: I have the following info dataset&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Name&amp;nbsp; City&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Country &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;John&amp;nbsp;&amp;nbsp; New York&amp;nbsp; USA&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Albert Toronto&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Canada&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Alice&amp;nbsp; Sydney&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Australia&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I want to create 3 dataset called USA, Canada and Australia from info dataset above. I tried the following way, but it's not working:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;data usa canada australia;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;set info;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;if country='usa' then output usa;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;if country='Canada' then output Canada;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;if country='Australia' then output Australia;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;run;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;can anyone help please. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 15 Feb 2015 23:08:13 GMT</pubDate>
    <dc:creator>mlogan</dc:creator>
    <dc:date>2015-02-15T23:08:13Z</dc:date>
    <item>
      <title>How to create multiple dataset from one dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-create-multiple-dataset-from-one-dataset/m-p/170038#M1929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Can anyone tell me what would be the code for creating multiple dataset from one dataset in one data step?&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Example: I have the following info dataset&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Name&amp;nbsp; City&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Country &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;John&amp;nbsp;&amp;nbsp; New York&amp;nbsp; USA&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Albert Toronto&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Canada&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Alice&amp;nbsp; Sydney&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Australia&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I want to create 3 dataset called USA, Canada and Australia from info dataset above. I tried the following way, but it's not working:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;data usa canada australia;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;set info;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;if country='usa' then output usa;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;if country='Canada' then output Canada;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;if country='Australia' then output Australia;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;run;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;can anyone help please. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Feb 2015 23:08:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-create-multiple-dataset-from-one-dataset/m-p/170038#M1929</guid>
      <dc:creator>mlogan</dc:creator>
      <dc:date>2015-02-15T23:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to create multiple dataset from one dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-create-multiple-dataset-from-one-dataset/m-p/170039#M1930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's an article that I wrote recently:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2015/01/26/how-to-split-one-data-set-into-many/" title="http://blogs.sas.com/content/sasdummy/2015/01/26/how-to-split-one-data-set-into-many/"&gt;http://blogs.sas.com/content/sasdummy/2015/01/26/how-to-split-one-data-set-into-many/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Be sure to read the comments, as several other experts have weighed in with improvements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 19:29:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-create-multiple-dataset-from-one-dataset/m-p/170039#M1930</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2015-02-17T19:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to create multiple dataset from one dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-create-multiple-dataset-from-one-dataset/m-p/170040#M1931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I seem to recall someone already answering this last week. One of your records shows the country as USA, but your if statement is looking for usa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 19:46:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-create-multiple-dataset-from-one-dataset/m-p/170040#M1931</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2015-02-17T19:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to create multiple dataset from one dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-create-multiple-dataset-from-one-dataset/m-p/170041#M1932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's the other thread:&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="71197" __jive_macro_name="thread" class="jive_macro jive_macro_thread" href="https://communities.sas.com/" modifiedtitle="true" title="how to create multiple dataset from one dataset?"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With some of the spam activity, we've seen some people add messages more than once because messages by brand new users are moderated.&amp;nbsp; We've been trying to weed out the duplicates, but some still slip through.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 20:10:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-create-multiple-dataset-from-one-dataset/m-p/170041#M1932</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2015-02-17T20:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to create multiple dataset from one dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-create-multiple-dataset-from-one-dataset/m-p/170042#M1933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Consider whether you really need to split this dataset of if you are better off processing using BY or CLASS statements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 21:15:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-create-multiple-dataset-from-one-dataset/m-p/170042#M1933</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2015-02-17T21:15:42Z</dc:date>
    </item>
  </channel>
</rss>

