<?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: error with proc report in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/error-with-proc-report/m-p/706230#M216741</link>
    <description>&lt;P&gt;At the time of the memory failure, your SAS process consumed 10G of RAM, and I suspect you ran into a limit set (wisely) by the SAS admin.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use PROC EXPORT, as suggested. Or write your data to a csv file, which does not need to have all the XML data ready before running the zip.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Dec 2020 07:24:31 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-12-16T07:24:31Z</dc:date>
    <item>
      <title>error with proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-with-proc-report/m-p/706206#M216729</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;FONT&gt;I am using Proc report to generate a report.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;the obs=644776.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;I have error messages:&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;ERROR: The SAS System stopped processing this step because of insufficient memory.&lt;BR /&gt;NOTE: There were 644776 observations read from the data set WORK.TEMP.&lt;BR /&gt;NOTE: PROCEDURE REPORT used (Total process time):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2:27.35&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; user cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2:09.94&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; system cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 17.51 seconds&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; memory&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; 8707369.07k&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OS Memory&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10485596.00k&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timestamp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16/12/2020 03:05:28 PM&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Step Count&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 25&amp;nbsp; Switch Count&amp;nbsp; 41&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Page Faults&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Page Reclaims&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6874226&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Page Swaps&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Voluntary Context Switches&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1321&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Involuntary Context Switches&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 577&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Block Input Operations&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Block Output Operations&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 63184&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;What can I do?&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;Th&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;&lt;BR /&gt;ods select all;&lt;BR /&gt;ods results off;&lt;BR /&gt;options missing="0";&lt;BR /&gt;ods excel file="/d/results1512.xlsx"&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;options (embedded_titles = 'no' embedded_footnotes='no' title_footnote_nobreak='off'&lt;BR /&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; sheet_interval="table" sheet_name="RTO");&lt;BR /&gt;title "";&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;proc report data=temp;&lt;BR /&gt;columns foe GNF17 GF17;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;define foe/ display "field of education" format=$grp. ;&lt;BR /&gt;define GNF17/ "2017 Non" format=comma7.;&lt;BR /&gt;define GF17/ "2017 yes" format=comma7.;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;run;&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 16 Dec 2020 04:12:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-with-proc-report/m-p/706206#M216729</guid>
      <dc:creator>walterwang</dc:creator>
      <dc:date>2020-12-16T04:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: error with proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-with-proc-report/m-p/706208#M216731</link>
      <description>&lt;P&gt;Are you really trying to create a report with 600,000 lines?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 04:56:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-with-proc-report/m-p/706208#M216731</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-12-16T04:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: error with proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-with-proc-report/m-p/706220#M216738</link>
      <description>&lt;P&gt;I don't think that proc reports is responsible for the out-of-memory error, but ods excel. Try using proc export with the label-option instead.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 06:03:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-with-proc-report/m-p/706220#M216738</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-12-16T06:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: error with proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-with-proc-report/m-p/706221#M216739</link>
      <description>I'm pretty sure a half million row report will easily run out of memory.&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Dec 2020 06:07:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-with-proc-report/m-p/706221#M216739</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-12-16T06:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: error with proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-with-proc-report/m-p/706230#M216741</link>
      <description>&lt;P&gt;At the time of the memory failure, your SAS process consumed 10G of RAM, and I suspect you ran into a limit set (wisely) by the SAS admin.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use PROC EXPORT, as suggested. Or write your data to a csv file, which does not need to have all the XML data ready before running the zip.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 07:24:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-with-proc-report/m-p/706230#M216741</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-12-16T07:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: error with proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-with-proc-report/m-p/706488#M216827</link>
      <description>Using CSV file, it works. But there is another issue. there is uni_code. They can be 0011, 0008.&lt;BR /&gt;using EXCEL. all good. But using CSV file, they becoem 11,8 etc.&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Dec 2020 00:16:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-with-proc-report/m-p/706488#M216827</guid>
      <dc:creator>walterwang</dc:creator>
      <dc:date>2020-12-17T00:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: error with proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-with-proc-report/m-p/706521#M216844</link>
      <description>&lt;P&gt;Why would writing UTF-8 characters have any impact on writing a text file?&lt;/P&gt;
&lt;P&gt;Here is a simple method to create a CSV file from a dataset.&amp;nbsp; If you need a header line make that line first and use the MOD option on the FILE statement in the step that writes the data.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  set have;
   file 'mydata_noheader.csv' dsd ;
   put (_all_) (+0);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Dec 2020 04:07:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-with-proc-report/m-p/706521#M216844</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-12-17T04:07:17Z</dc:date>
    </item>
  </channel>
</rss>

