<?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: exporting proc summary report file to excel says file is corrupt in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/exporting-proc-summary-report-file-to-excel-says-file-is-corrupt/m-p/410784#M3876</link>
    <description>&lt;P&gt;To be honest, and I haven't checked this, I didn't think proc summary created any ods destination output when run.&amp;nbsp; Hence nothing is going to the xlsx file.&amp;nbsp; This line:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;output out= rawdatapivotnov;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Says to create a dataset with the output, so maybe after that summary you want to have a proc report step and report out that dataset that was created so some actual data is written out to the xlsx file.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Nov 2017 09:28:09 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-11-06T09:28:09Z</dc:date>
    <item>
      <title>exporting proc summary report file to excel says file is corrupt</title>
      <link>https://communities.sas.com/t5/SAS-Studio/exporting-proc-summary-report-file-to-excel-says-file-is-corrupt/m-p/410767#M3874</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am writing this code below to export the file to excel, it shows excel file in the folder , when I try to open it, it says file is corrupt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please advise if there is any problem in the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;ods excel file='/folders/myfolders/pg2/rawdatapivotnov.xlsx' ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;proc summary data=orion.aaamonthlydata nway missing;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;class Amount_Financed System_decision lend_level; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;output out= rawdatapivotnov;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;ods excel close;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;I am running SAS Studio via Oracle VM Virtual box manager which I believe is Linux based, my laptop is windows based, is it a conflict of different environment that caused this excel file as corrupt, please advise.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 07:13:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/exporting-proc-summary-report-file-to-excel-says-file-is-corrupt/m-p/410767#M3874</guid>
      <dc:creator>bondtk</dc:creator>
      <dc:date>2017-11-06T07:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: exporting proc summary report file to excel says file is corrupt</title>
      <link>https://communities.sas.com/t5/SAS-Studio/exporting-proc-summary-report-file-to-excel-says-file-is-corrupt/m-p/410784#M3876</link>
      <description>&lt;P&gt;To be honest, and I haven't checked this, I didn't think proc summary created any ods destination output when run.&amp;nbsp; Hence nothing is going to the xlsx file.&amp;nbsp; This line:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;output out= rawdatapivotnov;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Says to create a dataset with the output, so maybe after that summary you want to have a proc report step and report out that dataset that was created so some actual data is written out to the xlsx file.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 09:28:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/exporting-proc-summary-report-file-to-excel-says-file-is-corrupt/m-p/410784#M3876</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-11-06T09:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: exporting proc summary report file to excel says file is corrupt</title>
      <link>https://communities.sas.com/t5/SAS-Studio/exporting-proc-summary-report-file-to-excel-says-file-is-corrupt/m-p/410807#M3877</link>
      <description>&lt;P&gt;By default, proc summary does not create output; proc means, OTOH, does.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 12:06:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/exporting-proc-summary-report-file-to-excel-says-file-is-corrupt/m-p/410807#M3877</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-11-06T12:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: exporting proc summary report file to excel says file is corrupt</title>
      <link>https://communities.sas.com/t5/SAS-Studio/exporting-proc-summary-report-file-to-excel-says-file-is-corrupt/m-p/411048#M3889</link>
      <description>&lt;P&gt;Hi, when I run this code, no error comes, it says 8011 observations read from original data set, work.rawdatapivotnov has 5297 oberservations and 5 variables, excel file is written. But when I open it. &amp;nbsp;It has error. So not sure what happened,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;its ts quite easy to export proc summary in SAS EG as it gives the export option, so not sure why SAS studio has no option to export to excel file.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 04:19:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/exporting-proc-summary-report-file-to-excel-says-file-is-corrupt/m-p/411048#M3889</guid>
      <dc:creator>bondtk</dc:creator>
      <dc:date>2017-11-07T04:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: exporting proc summary report file to excel says file is corrupt</title>
      <link>https://communities.sas.com/t5/SAS-Studio/exporting-proc-summary-report-file-to-excel-says-file-is-corrupt/m-p/411058#M3891</link>
      <description>&lt;P&gt;Hi RW9&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS doesn't work for me so I run the proc summary first and then use the proc export after that and it worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*code for proc summary */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc summary data=orion.aaamonthlydata nway missing;&lt;BR /&gt;class Amount_Financed&amp;nbsp; System_decision&amp;nbsp; lend_level;&lt;BR /&gt;output out=orion.volumedist;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* export proc summary to excel file */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc export&lt;BR /&gt;&amp;nbsp; data=orion.volumedist&lt;BR /&gt;&amp;nbsp; dbms=xlsx&lt;BR /&gt;&amp;nbsp; outfile="/folders/myfolders/pg2/rawdatapivotnov.xlsx"&lt;BR /&gt;&amp;nbsp; replace;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 05:27:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/exporting-proc-summary-report-file-to-excel-says-file-is-corrupt/m-p/411058#M3891</guid>
      <dc:creator>bondtk</dc:creator>
      <dc:date>2017-11-07T05:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: exporting proc summary report file to excel says file is corrupt</title>
      <link>https://communities.sas.com/t5/SAS-Studio/exporting-proc-summary-report-file-to-excel-says-file-is-corrupt/m-p/411059#M3892</link>
      <description>&lt;P&gt;Hi Kurt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS doesn't work for me so I run the proc summary first and then use the proc export after that and it worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*code for proc summary */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc summary data=orion.aaamonthlydata nway missing;&lt;BR /&gt;class Amount_Financed&amp;nbsp; System_decision&amp;nbsp; lend_level;&lt;BR /&gt;output out=orion.volumedist;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* export proc summary to excel file */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc export&lt;BR /&gt;&amp;nbsp; data=orion.volumedist&lt;BR /&gt;&amp;nbsp; dbms=xlsx&lt;BR /&gt;&amp;nbsp; outfile="/folders/myfolders/pg2/rawdatapivotnov.xlsx"&lt;BR /&gt;&amp;nbsp; replace;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 05:28:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/exporting-proc-summary-report-file-to-excel-says-file-is-corrupt/m-p/411059#M3892</guid>
      <dc:creator>bondtk</dc:creator>
      <dc:date>2017-11-07T05:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: exporting proc summary report file to excel says file is corrupt</title>
      <link>https://communities.sas.com/t5/SAS-Studio/exporting-proc-summary-report-file-to-excel-says-file-is-corrupt/m-p/411063#M3893</link>
      <description>&lt;P&gt;Try your ODS code again, but with means instead of summary.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 06:00:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/exporting-proc-summary-report-file-to-excel-says-file-is-corrupt/m-p/411063#M3893</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-11-07T06:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: exporting proc summary report file to excel says file is corrupt</title>
      <link>https://communities.sas.com/t5/SAS-Studio/exporting-proc-summary-report-file-to-excel-says-file-is-corrupt/m-p/411066#M3894</link>
      <description>&lt;P&gt;Hi Kurt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I replace it with proc means then it creates a proc means report withStd, means , min, max and I can see the excel file, but that's not the output I&amp;nbsp;need,&amp;nbsp; I need the proc summary report to go as a excel file and then I can&amp;nbsp;run the pivot tables on the excel file. Proc export allowed me to do that, so I am not sure how ods will export the proc summary as&amp;nbsp;an excel file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your patience.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 06:35:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/exporting-proc-summary-report-file-to-excel-says-file-is-corrupt/m-p/411066#M3894</guid>
      <dc:creator>bondtk</dc:creator>
      <dc:date>2017-11-07T06:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: exporting proc summary report file to excel says file is corrupt</title>
      <link>https://communities.sas.com/t5/SAS-Studio/exporting-proc-summary-report-file-to-excel-says-file-is-corrupt/m-p/411068#M3895</link>
      <description>&lt;P&gt;proc means and proc summary follow the same syntax and have the same functionality, their default settings are different.&lt;/P&gt;
&lt;P&gt;Add the print option to the proc summary statement.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 06:53:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/exporting-proc-summary-report-file-to-excel-says-file-is-corrupt/m-p/411068#M3895</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-11-07T06:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: exporting proc summary report file to excel says file is corrupt</title>
      <link>https://communities.sas.com/t5/SAS-Studio/exporting-proc-summary-report-file-to-excel-says-file-is-corrupt/m-p/411078#M3896</link>
      <description>&lt;P&gt;Hi Kurt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc means gives me a table which I cant use for further analysis as I would like to run pivot tables on the data in excel file.&lt;/P&gt;&lt;P&gt;Proc summary gives me the data set which I can use for my purpose. I added the proc print to proc summary.&lt;/P&gt;&lt;P&gt;thanks for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 07:42:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/exporting-proc-summary-report-file-to-excel-says-file-is-corrupt/m-p/411078#M3896</guid>
      <dc:creator>bondtk</dc:creator>
      <dc:date>2017-11-07T07:42:13Z</dc:date>
    </item>
  </channel>
</rss>

