<?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: Macro to split a Data set into smaller Datasets depending on the Unique value of each  variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-to-split-a-Data-set-into-smaller-Datasets-depending-on-the/m-p/512984#M138202</link>
    <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/246458"&gt;@SASnewbie4&lt;/a&gt;&amp;nbsp; Welcome to the SAS forum.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should be able to find your answer in this thread&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/New-SAS-User/Using-an-Array-to-output-multiple-datasets-by-year-of-record/m-p/512726#M2426" target="_blank"&gt;https://communities.sas.com/t5/New-SAS-User/Using-an-Array-to-output-multiple-datasets-by-year-of-record/m-p/512726#M2426&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/21262"&gt;@hashman&lt;/a&gt;&amp;nbsp; 's solution with eyes closed. Supposing you are not aware who is hashman, the only way to put that is there is perhaps only one synonym of SAS and that's that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Guru&amp;nbsp;@hashman&amp;nbsp; Sorry for the plug early morning, but i thought to get a newbie to peek your addr and poke the hash. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Nov 2018 16:08:48 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2018-11-14T16:08:48Z</dc:date>
    <item>
      <title>Macro to split a Data set into smaller Datasets depending on the Unique value of each  variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-to-split-a-Data-set-into-smaller-Datasets-depending-on-the/m-p/512972#M138197</link>
      <description>&lt;P&gt;Suppose I got Order placed from US, CA Today, so I call the macro and it will split the master data into 2 data US and CA having those observation. Tomorrow suppose I have order placed from CH, JP, IN and AU, I call same macro and it will split master data into 4 smaller Data.&lt;BR /&gt;Example input: %macroname('US', 'CA') or %macroname('CH', 'JP', 'AU', 'IN')&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 15:46:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-to-split-a-Data-set-into-smaller-Datasets-depending-on-the/m-p/512972#M138197</guid>
      <dc:creator>SASnewbie4</dc:creator>
      <dc:date>2018-11-14T15:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to split a Data set into smaller Datasets depending on the Unique value of each  variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-to-split-a-Data-set-into-smaller-Datasets-depending-on-the/m-p/512982#M138200</link>
      <description>&lt;A href="https://blogs.sas.com/content/sasdummy/2015/01/26/how-to-split-one-data-set-into-many/" target="_blank"&gt;https://blogs.sas.com/content/sasdummy/2015/01/26/how-to-split-one-data-set-into-many/&lt;/A&gt;</description>
      <pubDate>Wed, 14 Nov 2018 16:02:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-to-split-a-Data-set-into-smaller-Datasets-depending-on-the/m-p/512982#M138200</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-14T16:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to split a Data set into smaller Datasets depending on the Unique value of each  variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-to-split-a-Data-set-into-smaller-Datasets-depending-on-the/m-p/512983#M138201</link>
      <description>And the general advice is don't do this, it's usually inefficient for whatever else you're trying to do.</description>
      <pubDate>Wed, 14 Nov 2018 16:02:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-to-split-a-Data-set-into-smaller-Datasets-depending-on-the/m-p/512983#M138201</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-14T16:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to split a Data set into smaller Datasets depending on the Unique value of each  variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-to-split-a-Data-set-into-smaller-Datasets-depending-on-the/m-p/512984#M138202</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/246458"&gt;@SASnewbie4&lt;/a&gt;&amp;nbsp; Welcome to the SAS forum.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should be able to find your answer in this thread&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/New-SAS-User/Using-an-Array-to-output-multiple-datasets-by-year-of-record/m-p/512726#M2426" target="_blank"&gt;https://communities.sas.com/t5/New-SAS-User/Using-an-Array-to-output-multiple-datasets-by-year-of-record/m-p/512726#M2426&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/21262"&gt;@hashman&lt;/a&gt;&amp;nbsp; 's solution with eyes closed. Supposing you are not aware who is hashman, the only way to put that is there is perhaps only one synonym of SAS and that's that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Guru&amp;nbsp;@hashman&amp;nbsp; Sorry for the plug early morning, but i thought to get a newbie to peek your addr and poke the hash. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 16:08:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-to-split-a-Data-set-into-smaller-Datasets-depending-on-the/m-p/512984#M138202</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-11-14T16:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to split a Data set into smaller Datasets depending on the Unique value of each  variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-to-split-a-Data-set-into-smaller-Datasets-depending-on-the/m-p/512992#M138204</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks for&amp;nbsp;&lt;/SPAN&gt;replying.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just started learning SAS and so I am wondering if there is a way to do it. I did go through the link you shared with me but what I am trying to figure out is if I can split the data based on the Macro I call (For Example: %macroname('US', 'CA') or %macroname('CH', 'JP', 'AU', 'IN')). I am not even sure if it can be done as I have been looking for a solution for the past few days now but with no luck.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help if you can. Thanks again.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 16:15:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-to-split-a-Data-set-into-smaller-Datasets-depending-on-the/m-p/512992#M138204</guid>
      <dc:creator>SASnewbie4</dc:creator>
      <dc:date>2018-11-14T16:15:28Z</dc:date>
    </item>
  </channel>
</rss>

