<?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 DATA Step to create 3 new datasets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/DATA-Step-to-create-3-new-datasets/m-p/31033#M5948</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am having the following fields in a Dataset (Rollnumber, Name,Age, Mark and Dept). Using this , would like to create 3 New Datasets based on Age&amp;lt;20, 20&amp;lt;age&amp;gt;30 and Age ge 30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S Ravuri. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Mar 2012 09:25:44 GMT</pubDate>
    <dc:creator>sambasiva_ravuri_tcs_com</dc:creator>
    <dc:date>2012-03-14T09:25:44Z</dc:date>
    <item>
      <title>DATA Step to create 3 new datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATA-Step-to-create-3-new-datasets/m-p/31033#M5948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am having the following fields in a Dataset (Rollnumber, Name,Age, Mark and Dept). Using this , would like to create 3 New Datasets based on Age&amp;lt;20, 20&amp;lt;age&amp;gt;30 and Age ge 30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S Ravuri. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 09:25:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATA-Step-to-create-3-new-datasets/m-p/31033#M5948</guid>
      <dc:creator>sambasiva_ravuri_tcs_com</dc:creator>
      <dc:date>2012-03-14T09:25:44Z</dc:date>
    </item>
    <item>
      <title>DATA Step to create 3 new datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATA-Step-to-create-3-new-datasets/m-p/31034#M5949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; data one two three;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;if age &amp;lt; 20 then output one;&lt;/P&gt;&lt;P&gt;if 20&amp;lt; = age &amp;lt;30 then output two;&lt;/P&gt;&lt;P&gt;if age &amp;gt;= 30 then output three;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have taken into account the equal condition as well. Incase you don't want you can omit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 09:57:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATA-Step-to-create-3-new-datasets/m-p/31034#M5949</guid>
      <dc:creator>manojinpec</dc:creator>
      <dc:date>2012-03-14T09:57:02Z</dc:date>
    </item>
    <item>
      <title>DATA Step to create 3 new datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DATA-Step-to-create-3-new-datasets/m-p/31035#M5950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or more efficiently,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data one two three;&lt;/P&gt;&lt;P&gt; set have;&lt;/P&gt;&lt;P&gt; if age &amp;lt; 20 then output one;&lt;/P&gt;&lt;P&gt;ELSE if 20&amp;lt; = age &amp;lt;30 then output two;&lt;/P&gt;&lt;P&gt; ELSE if age &amp;gt;= 30 then output three;&lt;/P&gt;&lt;P&gt; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 11:09:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DATA-Step-to-create-3-new-datasets/m-p/31035#M5950</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2012-03-14T11:09:57Z</dc:date>
    </item>
  </channel>
</rss>

