<?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: Using Prompt Values in ODS Tagsets Excel Sheet Names in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Using-Prompt-Values-in-ODS-Tagsets-Excel-Sheet-Names/m-p/267049#M4972</link>
    <description>Can you provide the code?</description>
    <pubDate>Thu, 28 Apr 2016 17:21:18 GMT</pubDate>
    <dc:creator>Timmy2383</dc:creator>
    <dc:date>2016-04-28T17:21:18Z</dc:date>
    <item>
      <title>Using Prompt Values in ODS Tagsets Excel Sheet Names</title>
      <link>https://communities.sas.com/t5/Developers/Using-Prompt-Values-in-ODS-Tagsets-Excel-Sheet-Names/m-p/267040#M4969</link>
      <description>&lt;P&gt;Is there a way to use&amp;nbsp;prompt values from&amp;nbsp;the&amp;nbsp;stored process in the sheet name of your ODS Tagsets.excelxp output?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Nate&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2016 17:05:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Using-Prompt-Values-in-ODS-Tagsets-Excel-Sheet-Names/m-p/267040#M4969</guid>
      <dc:creator>NathanOch</dc:creator>
      <dc:date>2016-04-28T17:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using Prompt Values in ODS Tagsets Excel Sheet Names</title>
      <link>https://communities.sas.com/t5/Developers/Using-Prompt-Values-in-ODS-Tagsets-Excel-Sheet-Names/m-p/267041#M4970</link>
      <description>Sure. Just create a text box prompt or something then include SHEET_NAME="&amp;amp;SHEET" in the ODS TAGSETS.EXCELXP options (assuming you name your prompt SHEET) .&lt;BR /&gt;&lt;BR /&gt;You might also need SHEET_INTERVAL="none", but can't remember off the top of my head.</description>
      <pubDate>Thu, 28 Apr 2016 17:10:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Using-Prompt-Values-in-ODS-Tagsets-Excel-Sheet-Names/m-p/267041#M4970</guid>
      <dc:creator>Timmy2383</dc:creator>
      <dc:date>2016-04-28T17:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using Prompt Values in ODS Tagsets Excel Sheet Names</title>
      <link>https://communities.sas.com/t5/Developers/Using-Prompt-Values-in-ODS-Tagsets-Excel-Sheet-Names/m-p/267047#M4971</link>
      <description>&lt;P&gt;That's what I thought, but it seems my BODY statement overrides the SHEET_NAME statement and without the BODY statement nothing is generated.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2016 17:20:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Using-Prompt-Values-in-ODS-Tagsets-Excel-Sheet-Names/m-p/267047#M4971</guid>
      <dc:creator>NathanOch</dc:creator>
      <dc:date>2016-04-28T17:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using Prompt Values in ODS Tagsets Excel Sheet Names</title>
      <link>https://communities.sas.com/t5/Developers/Using-Prompt-Values-in-ODS-Tagsets-Excel-Sheet-Names/m-p/267049#M4972</link>
      <description>Can you provide the code?</description>
      <pubDate>Thu, 28 Apr 2016 17:21:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Using-Prompt-Values-in-ODS-Tagsets-Excel-Sheet-Names/m-p/267049#M4972</guid>
      <dc:creator>Timmy2383</dc:creator>
      <dc:date>2016-04-28T17:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using Prompt Values in ODS Tagsets Excel Sheet Names</title>
      <link>https://communities.sas.com/t5/Developers/Using-Prompt-Values-in-ODS-Tagsets-Excel-Sheet-Names/m-p/267054#M4973</link>
      <description>&lt;P&gt;Here is my output statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;*ProcessBody;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%global&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; _odsest _odsstyle _odsstylesheet;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%let&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; _odsest=html;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;*%let _odsstyle=analysis;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%let&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; _odsstylesheet=;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;_null_&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;/* Set HTTP headers */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; rc = stpsrv_header(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Content-type'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'application/vnd.ms-excel'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;/* Prompt to SAVE or OPEN the attachment file named test.xls using Excel */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; rc = stpsrv_header(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Content-disposition'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'attachment; filename=Open_Inventory_List.xls'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;/* OR */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;/* Open results directly to Excel (browser-dependent) */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;/* rc = stpsrv_header('Content-disposition',"inline"); */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ODS&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;LISTING&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;CLOSE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;*%let _ODSSTYLE=analysis;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ODS&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; TAGSETS.ExcelXP options(sheet_name=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"&amp;amp;new_Client-&amp;amp;new_Sub_Client"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; sheet_interval=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"none"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; embedded_titles=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'yes'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;) &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;BODY&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Open_Inventory_List"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#008000" face="Courier New" size="3"&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;&lt;FONT color="#008000" face="Courier New" size="3"&gt;/*style=analysis*/&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;%&lt;STRONG&gt;&lt;I&gt;stpbegin&lt;/I&gt;&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT face="Courier New" size="3"&gt;...my proc print&lt;/FONT&gt;&lt;/EM&gt;&lt;FONT face="Courier New" size="3"&gt; statement...&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;%&lt;EM&gt;&lt;STRONG&gt;stpend&lt;/STRONG&gt;&lt;/EM&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2016 17:24:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Using-Prompt-Values-in-ODS-Tagsets-Excel-Sheet-Names/m-p/267054#M4973</guid>
      <dc:creator>NathanOch</dc:creator>
      <dc:date>2016-04-28T17:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using Prompt Values in ODS Tagsets Excel Sheet Names</title>
      <link>https://communities.sas.com/t5/Developers/Using-Prompt-Values-in-ODS-Tagsets-Excel-Sheet-Names/m-p/267068#M4974</link>
      <description>&lt;P&gt;Turns out if you put the ODS Tagsets statement AFTER the &lt;STRONG&gt;%stpbegin&lt;/STRONG&gt; statement and exclude the BODY statement you can successfully use SHEET_NAME.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2016 18:02:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Using-Prompt-Values-in-ODS-Tagsets-Excel-Sheet-Names/m-p/267068#M4974</guid>
      <dc:creator>NathanOch</dc:creator>
      <dc:date>2016-04-28T18:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using Prompt Values in ODS Tagsets Excel Sheet Names</title>
      <link>https://communities.sas.com/t5/Developers/Using-Prompt-Values-in-ODS-Tagsets-Excel-Sheet-Names/m-p/267207#M4975</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva" size="3"&gt;Try this simplified code:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;*ProcessBody;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;%let RV=%sysfunc(appsrv_header(Content-type,application/vnd.ms-excel));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="3"&gt;%let RV=%sysfunc(appsrv_header(Content-disposition,attachment; filename="Open_Inventory_List.xml"));&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;ods _all_ close;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;ods tagsets.ExcelXP file=_webout style=analysis;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;ods tagsets.ExcelXP options(sheet_name="&amp;amp;NEW_CLIENT-&amp;amp;NEW_SUB_CLIENT" &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sheet_interval='none' &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="3"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; embedded_titles='yes');&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;* Your proc print statement here;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="3"&gt;ods tagsets.ExcelXP close;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva" size="3"&gt;Adapted from page 18 of this paper:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="verdana,geneva" size="3"&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings15/SAS1700-2015.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings15/SAS1700-2015.pdf&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva" size="3"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="verdana,geneva" size="3"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2016 12:09:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Using-Prompt-Values-in-ODS-Tagsets-Excel-Sheet-Names/m-p/267207#M4975</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2016-04-29T12:09:14Z</dc:date>
    </item>
  </channel>
</rss>

