<?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: Specific names of sheets (Proc Report) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Specific-names-of-sheets-Proc-Report-Export/m-p/834816#M330008</link>
    <description>&lt;P&gt;Perfect, thx for it!&lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2022 10:58:11 GMT</pubDate>
    <dc:creator>Konkordanz</dc:creator>
    <dc:date>2022-09-23T10:58:11Z</dc:date>
    <item>
      <title>Specific names of sheets (Proc-Report-Export)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Specific-names-of-sheets-Proc-Report-Export/m-p/834807#M330002</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to export two proc-report-outputs into two excel-sheets. But I want to give them specific names. Is this within the single proc-report-steps doable (maybe with an "out="-command)? Or do I always have to write a base-name into the options-part?&lt;/P&gt;
&lt;P&gt;For example: With following Code the names of the excel-sheets are DB and DB 2. What I want is for example &lt;EM&gt;Result_XY&lt;/EM&gt; and &lt;EM&gt;City_Z. &lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Thank you!&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;STRONG&gt;ODS excel file="XY"
options(sheet_name="DB");&lt;/STRONG&gt;

proc report data=test;
column LF_Typ16 HRF_P_SN (GGKL_akt6,HRF_P_SN) (HRF_P_SN,n) GGKL_akt6;
define LF_Typ16 / group;
define HRF_P_SN / analysis;
define GGKL_akt6 / across;
where Bev_LF='01_LF_HW' and LF_StiLF=1;
run;

proc report data=test;
column LF_Typ16 HRF_P_SN (GGKL_akt6,HRF_P_SN) (HRF_P_SN,n) GGKL_akt6;
define LF_Typ16 / group;
define HRF_P_SN / analysis;
define GGKL_akt6 / across;
where Bev_LF='01_LF_HW' and LF_StiLF=1;
run;
&lt;STRONG&gt;
ods excel close;&lt;/STRONG&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 09:35:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Specific-names-of-sheets-Proc-Report-Export/m-p/834807#M330002</guid>
      <dc:creator>Konkordanz</dc:creator>
      <dc:date>2022-09-23T09:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Specific names of sheets (Proc Report)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Specific-names-of-sheets-Proc-Report-Export/m-p/834815#M330007</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS excel file="XY.xlsx" options(sheet_name="Result XY");

proc report data=test;
column LF_Typ16 HRF_P_SN (GGKL_akt6,HRF_P_SN) (HRF_P_SN,n) GGKL_akt6;
define LF_Typ16 / group;
define HRF_P_SN / analysis;
define GGKL_akt6 / across;
where Bev_LF='01_LF_HW' and LF_StiLF=1;
run;

ods excel options(sheet_name='City Z');
proc report data=test;
column LF_Typ16 HRF_P_SN (GGKL_akt6,HRF_P_SN) (HRF_P_SN,n) GGKL_akt6;
define LF_Typ16 / group;
define HRF_P_SN / analysis;
define GGKL_akt6 / across;
where Bev_LF='01_LF_HW' and LF_StiLF=1;
run;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a minor side note ... why do you want sheet names with underscores in the name? I think (again this is minor) that Result XY looks more readable and professional than Result_XY.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 10:47:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Specific-names-of-sheets-Proc-Report-Export/m-p/834815#M330007</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-09-23T10:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Specific names of sheets (Proc Report)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Specific-names-of-sheets-Proc-Report-Export/m-p/834816#M330008</link>
      <description>&lt;P&gt;Perfect, thx for it!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 10:58:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Specific-names-of-sheets-Proc-Report-Export/m-p/834816#M330008</guid>
      <dc:creator>Konkordanz</dc:creator>
      <dc:date>2022-09-23T10:58:11Z</dc:date>
    </item>
  </channel>
</rss>

