<?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: Looking for help in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Looking-for-help/m-p/202527#M13476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So is there any way to doing this? or a VBA Macro? I prefer doing it in SAS. Any help or hint would appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Mar 2015 19:01:56 GMT</pubDate>
    <dc:creator>JackZhang</dc:creator>
    <dc:date>2015-03-16T19:01:56Z</dc:date>
    <item>
      <title>Looking for help</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Looking-for-help/m-p/202526#M13475</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 need some help for my project. I create SAS output to my excel with one tab, but i need create another tab using excel to link previous tab. So how I can keep the second tab when I run SAS code? Because every time I run the code, it will overwrite the workbook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my code for the first tab,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**export excel file**;&lt;/P&gt;&lt;P&gt;ODS TAGSETS.excelxp&amp;nbsp; FILE="\\cnpl.enbridge.com\Common\Cgy\Development\System Development\Facility\17 - System Analytics\Working Files\Jack\Pressure Cycling\Final.xls"&lt;/P&gt;&lt;P&gt;STYLE=Printer&lt;/P&gt;&lt;P&gt;OPTIONS ( Orientation = 'landscape'&lt;/P&gt;&lt;P&gt;FitToPage = 'yes'&lt;/P&gt;&lt;P&gt;sheet_name = 'L6LK'&lt;/P&gt;&lt;P&gt;panelcols='2'&lt;/P&gt;&lt;P&gt;Pages_FitWidth = '1'&lt;/P&gt;&lt;P&gt;Pages_FitHeight = '100' &lt;/P&gt;&lt;P&gt;embedded_titles = 'yes'&lt;/P&gt;&lt;P&gt;sheet_interval='none');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=Count_Summary noobs;&lt;/P&gt;&lt;P&gt;label COUNT = 'Count';&lt;/P&gt;&lt;P&gt;var Train Count;&lt;/P&gt;&lt;P&gt;sum Count;&lt;/P&gt;&lt;P&gt;title 'L6LK Train Count Up To Today';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;title "&amp;amp;G_Line Violation Report";&lt;/P&gt;&lt;P&gt;proc report data=FINAL nowd center;&lt;/P&gt;&lt;P&gt;columns&lt;/P&gt;&lt;P&gt;SHIPPER_BATCH_NAME &lt;/P&gt;&lt;P&gt;_&amp;amp;DESTINATION&lt;/P&gt;&lt;P&gt;FINAL_FCLTY_SHORT_NAME&lt;/P&gt;&lt;P&gt;Status&lt;/P&gt;&lt;P&gt;Total_Violation;&lt;/P&gt;&lt;P&gt;define _all_/display center;&lt;/P&gt;&lt;P&gt;compute _&amp;amp;DESTINATION;&lt;/P&gt;&lt;P&gt; * Placeholder for cell highlighting;&lt;/P&gt;&lt;P&gt;if (_&amp;amp;DESTINATION eq 'LK')&lt;/P&gt;&lt;P&gt; then call define( '_LK', 'style', 'style=[background=silver]');&lt;/P&gt;&lt;P&gt; endcomp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;compute FINAL_FCLTY_SHORT_NAME;&lt;/P&gt;&lt;P&gt;if (FINAL_FCLTY_SHORT_NAME eq 'PDVMWLT')&lt;/P&gt;&lt;P&gt; then call define('FINAL_FCLTY_SHORT_NAME', 'style', 'style=[background=red]');&lt;/P&gt;&lt;P&gt; else if (FINAL_FCLTY_SHORT_NAME eq 'ENBMUSTANG')&lt;/P&gt;&lt;P&gt; then call define('FINAL_FCLTY_SHORT_NAME', 'style', 'style=[background=green]');&lt;/P&gt;&lt;P&gt; else if (FINAL_FCLTY_SHORT_NAME eq 'TEXTRAD')&lt;/P&gt;&lt;P&gt; then call define('FINAL_FCLTY_SHORT_NAME', 'style', 'style=[background=pink]');&lt;/P&gt;&lt;P&gt; endcomp; &lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;P&gt;ods tagsets.excelxp&amp;nbsp; close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I create first tab with two tables, but I need to create second tab in excel to summarize the information from first tab, where i create using SAS.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I believe I need add more code on this. Please help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Jack &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 18:37:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Looking-for-help/m-p/202526#M13475</guid>
      <dc:creator>JackZhang</dc:creator>
      <dc:date>2015-03-16T18:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for help</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Looking-for-help/m-p/202527#M13476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So is there any way to doing this? or a VBA Macro? I prefer doing it in SAS. Any help or hint would appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 19:01:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Looking-for-help/m-p/202527#M13476</guid>
      <dc:creator>JackZhang</dc:creator>
      <dc:date>2015-03-16T19:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for help</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Looking-for-help/m-p/202528#M13477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jack,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this as a template.&amp;nbsp; It should work for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods _all_ close;&lt;/P&gt;&lt;P&gt;ods tagsets.ExcelXP path='PATH' file='OUTPUT.xml'&lt;/P&gt;&lt;P&gt;style=printer;&lt;/P&gt;&lt;P&gt;ods tagsets.ExcelXP options(sheet_name='SHEET NAME ONE' AUTOFILTER = 'ALL');&lt;/P&gt;&lt;P&gt;proc print data=FILE1 noobs;&lt;/P&gt;&lt;P&gt;var _all_;run;quit;&lt;/P&gt;&lt;P&gt;ods tagsets.ExcelXP options(sheet_name='SHEET NAME TWO' AUTOFILTER = 'ALL');&lt;/P&gt;&lt;P&gt;proc print data=FILE2 noobs;&lt;/P&gt;&lt;P&gt;var _all_;run;quit;&lt;/P&gt;&lt;P&gt;ods tagsets.ExcelXP close;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 20:25:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Looking-for-help/m-p/202528#M13477</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2015-03-16T20:25:29Z</dc:date>
    </item>
  </channel>
</rss>

