<?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: sas macro code in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/sas-macro-code/m-p/86045#M18476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Except if you have a lot of employees that's a pain, but then you shouldn't be doing that and using by groups instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you really need to split the file for some reason and can't use BY processing see the hash solution at the end of this page (the rest is interesting to know as well).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://www.sascommunity.org/wiki/Split_Data_into_Subsets" title="http://www.sascommunity.org/wiki/Split_Data_into_Subsets"&gt;http://www.sascommunity.org/wiki/Split_Data_into_Subsets&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jan 2013 17:56:32 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2013-01-25T17:56:32Z</dc:date>
    <item>
      <title>sas macro code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-macro-code/m-p/86043#M18474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to sas macro. I am getting error on the following macro, trying to debug it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;data employee1 employee2 employee3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;set department;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;call symput('employee', employeeID);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;output employeeID&amp;amp;employee;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;Diana&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 16:47:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-macro-code/m-p/86043#M18474</guid>
      <dc:creator>Flyer</dc:creator>
      <dc:date>2013-01-25T16:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: sas macro code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-macro-code/m-p/86044#M18475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Macro variables created by call symput will not be available until after the RUN; statement at the end of the data step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't need macros here anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;data employee1 employee2 employee3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;set department;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if employeeID=1 then output employee1;&lt;/P&gt;&lt;P&gt;else if employeeID=2 then output employee2;&lt;/P&gt;&lt;P&gt;else if employeeID=3 then output employee3;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; background-color: #ffffff;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 17:44:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-macro-code/m-p/86044#M18475</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2013-01-25T17:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: sas macro code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-macro-code/m-p/86045#M18476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Except if you have a lot of employees that's a pain, but then you shouldn't be doing that and using by groups instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you really need to split the file for some reason and can't use BY processing see the hash solution at the end of this page (the rest is interesting to know as well).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://www.sascommunity.org/wiki/Split_Data_into_Subsets" title="http://www.sascommunity.org/wiki/Split_Data_into_Subsets"&gt;http://www.sascommunity.org/wiki/Split_Data_into_Subsets&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 17:56:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-macro-code/m-p/86045#M18476</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-01-25T17:56:32Z</dc:date>
    </item>
  </channel>
</rss>

