<?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: Writing proc summary to an excelfile in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Writing-proc-summary-to-an-excelfile/m-p/163731#M12123</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ods tagsets.ExcelXP file='G:\Risk\Portefølje\Eirik W\Excel_output\test.xls' style=journal;&lt;/P&gt;&lt;P&gt;NOTE: Writing TAGSETS.EXCELXP Body file: G:\Risk\Portefølje\Eirik W\Excel_output\test.xls&lt;/P&gt;&lt;P&gt;ERROR: Physical file does not exist, G:\Risk\Portefølje\Eirik W\Excel_output\test.xls.&lt;/P&gt;&lt;P&gt;WARNING: No body file. TAGSETS.EXCELXP output will not be created.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jul 2014 14:23:41 GMT</pubDate>
    <dc:creator>Kiteulf</dc:creator>
    <dc:date>2014-07-02T14:23:41Z</dc:date>
    <item>
      <title>Writing proc summary to an excelfile</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Writing-proc-summary-to-an-excelfile/m-p/163727#M12119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to write an excel file the output of a summary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ods tagsets.ExcelXP file='G:\Risk\Portefølje\Eirik W\Excel_output\test.xls' style=journal;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc Summary data=Direkte_LOAN6 nway missing;&lt;/P&gt;&lt;P&gt;&amp;nbsp; VAR UTLAN;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Class PROD PERIODE;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Output out=Loan_portfolio (drop= _TYPE_) sum=;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Where PERIODE &amp;gt; '0811' AND ALDER_KTO = 1&amp;nbsp; /*AND NPL = 1*/;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods tagsets.ExcelXP close;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 12:35:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Writing-proc-summary-to-an-excelfile/m-p/163727#M12119</guid>
      <dc:creator>Kiteulf</dc:creator>
      <dc:date>2014-07-02T12:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Writing proc summary to an excelfile</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Writing-proc-summary-to-an-excelfile/m-p/163728#M12120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By default, PROC SUMMARY does not produce print output. Either use PROC MEANS or specify the PRINT option on the PROC SUMMARY statment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 12:38:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Writing-proc-summary-to-an-excelfile/m-p/163728#M12120</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-07-02T12:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Writing proc summary to an excelfile</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Writing-proc-summary-to-an-excelfile/m-p/163729#M12121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even though I use print in teh statement it will not run&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc Summary data=Direkte_LOAN6 nway missing print;&lt;/P&gt;&lt;P&gt;&amp;nbsp; VAR UTLAN;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Class PROD PERIODE;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Output out=Loan_portfolio (drop= _TYPE_) sum=;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Where PERIODE &amp;gt; '0811' AND ALDER_KTO = 1&amp;nbsp; /*AND NPL = 1*/;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 13:12:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Writing-proc-summary-to-an-excelfile/m-p/163729#M12121</guid>
      <dc:creator>Kiteulf</dc:creator>
      <dc:date>2014-07-02T13:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Writing proc summary to an excelfile</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Writing-proc-summary-to-an-excelfile/m-p/163730#M12122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1) are there messages in the SAS log, if so, what are they&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2) do you have your ODS destination statements in the code&lt;/P&gt;&lt;P&gt;&amp;nbsp; 3) when I run the attached code, I do get output. See attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp; 4) Did you try PROC MEANS instead of PROC SUMMARY?&lt;/P&gt;&lt;P&gt;&amp;nbsp; 5) What do you want to see in Excel -- the results of the PROC SUMMARY or the print of the Loan_portfolio dataset? They are 2 different outputs, as you will see if you run the code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Since I cannot replicate your issue with my code, my suggestion is that you open a track with Tech Support for deeper investigation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods tagsets.excelxp file='c:\temp\prd_out.xml' style=sasweb;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;Proc Summary data=sashelp.prdsale nway missing print;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; VAR actual;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; Class PRODTYPE country;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; Output out=Loan_portfolio (drop= _TYPE_) sum=;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; Where quarter=1 ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc print data=loan_portfolio;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods tagsets.excelxp close;&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10845i15E29B47E507649A/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="output_from_proc_summary.png" title="output_from_proc_summary.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 13:39:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Writing-proc-summary-to-an-excelfile/m-p/163730#M12122</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-07-02T13:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Writing proc summary to an excelfile</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Writing-proc-summary-to-an-excelfile/m-p/163731#M12123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ods tagsets.ExcelXP file='G:\Risk\Portefølje\Eirik W\Excel_output\test.xls' style=journal;&lt;/P&gt;&lt;P&gt;NOTE: Writing TAGSETS.EXCELXP Body file: G:\Risk\Portefølje\Eirik W\Excel_output\test.xls&lt;/P&gt;&lt;P&gt;ERROR: Physical file does not exist, G:\Risk\Portefølje\Eirik W\Excel_output\test.xls.&lt;/P&gt;&lt;P&gt;WARNING: No body file. TAGSETS.EXCELXP output will not be created.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 14:23:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Writing-proc-summary-to-an-excelfile/m-p/163731#M12123</guid>
      <dc:creator>Kiteulf</dc:creator>
      <dc:date>2014-07-02T14:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Writing proc summary to an excelfile</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Writing-proc-summary-to-an-excelfile/m-p/163732#M12124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to write an excelfile of the Loan_portfolio dataset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 14:25:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Writing-proc-summary-to-an-excelfile/m-p/163732#M12124</guid>
      <dc:creator>Kiteulf</dc:creator>
      <dc:date>2014-07-02T14:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Writing proc summary to an excelfile</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Writing-proc-summary-to-an-excelfile/m-p/163733#M12125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this directory exist on your (where SAS is located) machine?&lt;/P&gt;&lt;P&gt;G:\Risk\Portefølje\Eirik W\Excel_output\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error is saying that it cannot find that path, or that you don't have write permission to that area to create the file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 14:44:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Writing-proc-summary-to-an-excelfile/m-p/163733#M12125</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-07-02T14:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Writing proc summary to an excelfile</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Writing-proc-summary-to-an-excelfile/m-p/163734#M12126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; If that is the case, then you will need to use PROC PRINT or PROC REPORT on the Loan_portfolio dataset, as shown in my test code. However, you will have to resolve the issue of the correct path for your output results first. As RW9 explained, your ERROR message is happening because either 1) you do not have WRITE access to the physical path location in your FILE= option or 2) that is the wrong path name or 3) the path name or some folder in the path does not exist.&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 15:27:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Writing-proc-summary-to-an-excelfile/m-p/163734#M12126</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-07-02T15:27:25Z</dc:date>
    </item>
  </channel>
</rss>

