<?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: Excel output file does not appear in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Excel-output-file-does-not-appear/m-p/880737#M43557</link>
    <description>&lt;P&gt;Your code does not use the Library you defined that I can see.&lt;/P&gt;
&lt;P&gt;I'm not fond of library names like OUT&amp;nbsp; as they are easy to confuse with options but I think this may have been what you intended, since you don't really state what is supposed to appear in Excel. To send output to a library the reference is always libname.datasetname (or catalog or other SAS item)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%macro HR(x=);
%let outputName=_PE%substr(%cmpres(&amp;amp;x.),1,%sysfunc(min(%length(&amp;amp;x.),29)));
ods graphics off;
ods output ParameterEstimates= &lt;FONT size="5" color="#FF00FF"&gt;&lt;STRONG&gt;out.&lt;/STRONG&gt;&lt;/FONT&gt;&amp;amp;outputName.;
*;
proc phreg data = all;
CLASS &amp;amp;x (ref='0');
model FU_TIME_YRS *HCC_DEAD(0)=&amp;amp;x /eventcode=1;
run;
*;
ods output close;
ods graphics on;
*;
%mend HR; &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; &lt;/P&gt;</description>
    <pubDate>Wed, 14 Jun 2023 20:22:54 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2023-06-14T20:22:54Z</dc:date>
    <item>
      <title>Excel output file does not appear</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Excel-output-file-does-not-appear/m-p/880717#M43556</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I run the code below,&amp;nbsp;and although I can see the results in the SAS window, the Excel file that I saved is not visible. I would appreciate it if you could review the code and provide guidance on how to fix this issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname out xlsx "C:\1.PROJECTS\XXX\test_snp.xlsx"; &lt;BR /&gt;%macro HR(x=);&lt;BR /&gt;%let outputName=_PE%substr(%cmpres(&amp;amp;x.),1,%sysfunc(min(%length(&amp;amp;x.),29)));&lt;BR /&gt;ods graphics off;&lt;BR /&gt;ods output ParameterEstimates=&amp;amp;outputName.;&lt;BR /&gt;*;&lt;BR /&gt;proc phreg data = all;&lt;BR /&gt;CLASS &amp;amp;x (ref='0');&lt;BR /&gt;model FU_TIME_YRS *HCC_DEAD(0)=&amp;amp;x /eventcode=1; &lt;BR /&gt;run;&lt;BR /&gt;*;&lt;BR /&gt;ods output close;&lt;BR /&gt;ods graphics on;&lt;BR /&gt;*;&lt;BR /&gt;%mend HR; &lt;BR /&gt;*;&lt;BR /&gt;%HR(x=GEN1);&lt;BR /&gt;%HR(x=GEN2);&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 15:27:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Excel-output-file-does-not-appear/m-p/880717#M43556</guid>
      <dc:creator>haoduonge</dc:creator>
      <dc:date>2023-06-14T15:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Excel output file does not appear</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Excel-output-file-does-not-appear/m-p/880737#M43557</link>
      <description>&lt;P&gt;Your code does not use the Library you defined that I can see.&lt;/P&gt;
&lt;P&gt;I'm not fond of library names like OUT&amp;nbsp; as they are easy to confuse with options but I think this may have been what you intended, since you don't really state what is supposed to appear in Excel. To send output to a library the reference is always libname.datasetname (or catalog or other SAS item)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%macro HR(x=);
%let outputName=_PE%substr(%cmpres(&amp;amp;x.),1,%sysfunc(min(%length(&amp;amp;x.),29)));
ods graphics off;
ods output ParameterEstimates= &lt;FONT size="5" color="#FF00FF"&gt;&lt;STRONG&gt;out.&lt;/STRONG&gt;&lt;/FONT&gt;&amp;amp;outputName.;
*;
proc phreg data = all;
CLASS &amp;amp;x (ref='0');
model FU_TIME_YRS *HCC_DEAD(0)=&amp;amp;x /eventcode=1;
run;
*;
ods output close;
ods graphics on;
*;
%mend HR; &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; &lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 20:22:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Excel-output-file-does-not-appear/m-p/880737#M43557</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-06-14T20:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Excel output file does not appear</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Excel-output-file-does-not-appear/m-p/880801#M43566</link>
      <description>Thank you!</description>
      <pubDate>Wed, 14 Jun 2023 20:16:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Excel-output-file-does-not-appear/m-p/880801#M43566</guid>
      <dc:creator>haoduonge</dc:creator>
      <dc:date>2023-06-14T20:16:25Z</dc:date>
    </item>
  </channel>
</rss>

