<?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 Macro in ODS multiple tabs in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-in-ODS-multiple-tabs/m-p/90653#M19197</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 main;&lt;/P&gt;&lt;P&gt;if a=2 output one;&lt;/P&gt;&lt;P&gt;if a=3 output two;&lt;/P&gt;&lt;P&gt;if a=4 output three;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;/*creates three data sets*/&lt;/P&gt;&lt;P&gt;%macro all_tabs(ds,name);&lt;/P&gt;&lt;P&gt;ods tagset (sheet interval='none' sheet_name = &amp;amp;name.....etc);&lt;/P&gt;&lt;P&gt;proc report data = &amp;amp;ds. NOWD; headskip split = '*' wrap nowd&lt;/P&gt;&lt;P&gt;col&amp;nbsp;&amp;nbsp; etc..........; /*the column fields go here*/&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;%all_tabs(one,"0-30");&lt;/P&gt;&lt;P&gt;%all_tabs(one,"31-60");&lt;/P&gt;&lt;P&gt;%all_tabs(one,"61-90");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%insertCode(report_name.sas);&lt;/P&gt;&lt;P&gt;ods tagset.excelXP close;&lt;/P&gt;&lt;P&gt;ods listing;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;When I run the report to populated the 3 different tabs I get the error message LINE AND COLUMN CANNOT BE DETERMINED&lt;/P&gt;&lt;P&gt;Why am I getting this error and will I have to rename the &amp;amp;name portion since it is in quotes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Sep 2013 23:30:38 GMT</pubDate>
    <dc:creator>omega1983</dc:creator>
    <dc:date>2013-09-23T23:30:38Z</dc:date>
    <item>
      <title>Macro in ODS multiple tabs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-in-ODS-multiple-tabs/m-p/90653#M19197</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 main;&lt;/P&gt;&lt;P&gt;if a=2 output one;&lt;/P&gt;&lt;P&gt;if a=3 output two;&lt;/P&gt;&lt;P&gt;if a=4 output three;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;/*creates three data sets*/&lt;/P&gt;&lt;P&gt;%macro all_tabs(ds,name);&lt;/P&gt;&lt;P&gt;ods tagset (sheet interval='none' sheet_name = &amp;amp;name.....etc);&lt;/P&gt;&lt;P&gt;proc report data = &amp;amp;ds. NOWD; headskip split = '*' wrap nowd&lt;/P&gt;&lt;P&gt;col&amp;nbsp;&amp;nbsp; etc..........; /*the column fields go here*/&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;%all_tabs(one,"0-30");&lt;/P&gt;&lt;P&gt;%all_tabs(one,"31-60");&lt;/P&gt;&lt;P&gt;%all_tabs(one,"61-90");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%insertCode(report_name.sas);&lt;/P&gt;&lt;P&gt;ods tagset.excelXP close;&lt;/P&gt;&lt;P&gt;ods listing;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;When I run the report to populated the 3 different tabs I get the error message LINE AND COLUMN CANNOT BE DETERMINED&lt;/P&gt;&lt;P&gt;Why am I getting this error and will I have to rename the &amp;amp;name portion since it is in quotes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 23:30:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-in-ODS-multiple-tabs/m-p/90653#M19197</guid>
      <dc:creator>omega1983</dc:creator>
      <dc:date>2013-09-23T23:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Macro in ODS multiple tabs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-in-ODS-multiple-tabs/m-p/90654#M19198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;ods tagset&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;should be odd tagset.excelxp perhaps?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Usually means there's an error in the code somewhere but hard to see without all the code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;If you're splitting the data by a variable, in a proc report you can do it in one step using the sheet_interval option and adding in a variable that has the name.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 02:53:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-in-ODS-multiple-tabs/m-p/90654#M19198</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-09-24T02:53:53Z</dc:date>
    </item>
  </channel>
</rss>

