<?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: proc report in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-report/m-p/72150#M7183</link>
    <description>Hi:&lt;BR /&gt;
  Well, EG adds ODS HTML code around your project code automatically. So one thing you can do is something like this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
        &lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
                        &lt;BR /&gt;
proc report data=sashelp.class nowd &lt;BR /&gt;
     out=procreportdata;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
    &lt;BR /&gt;
What's going to happen is that EG will put the opening HTML statement and then your ODS _ALL_ CLOSE statement will immediately CLOSE all the open destinations, including the LISTING destination.&lt;BR /&gt;
 &lt;BR /&gt;
Then, proc report will run and create your output dataset (which you should then see in your project. Note that I did NOT put any extra ODS HTML statements around my PROC REPORT. In this instance, I am merely using PROC REPORT to make me an OUTPUT dataset using the OUT= option. If you did want to direct your output to another destination, then your code would look like this:&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
        &lt;BR /&gt;
ods _all_ close;  /* Close EG HTML file */&lt;BR /&gt;
                        &lt;BR /&gt;
ods html file='c:\temp\onlymine.html' style=sasweb;  /* create separate HTML file */&lt;BR /&gt;
proc report data=sashelp.class nowd &lt;BR /&gt;
     out=procreportdata;&lt;BR /&gt;
run;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                  &lt;BR /&gt;
cynthia</description>
    <pubDate>Tue, 22 Sep 2009 19:31:17 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2009-09-22T19:31:17Z</dc:date>
    <item>
      <title>proc report</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-report/m-p/72147#M7180</link>
      <description>I searched the archives, but couldn't find this issue.  I apologize if I overlooked a previous answer.&lt;BR /&gt;
&lt;BR /&gt;
My PROC REPORT code in EG is producing too much output for my project.  I have diverted the output to a file, but I it still shows up in my Project output. How should I do, so the output will not be show up in my project output.&lt;BR /&gt;
&lt;BR /&gt;
This is my code:&lt;BR /&gt;
&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods html file='c:\test.htm';&lt;BR /&gt;
proc report data=sashelp.class out=procreportdata nowd;&lt;BR /&gt;
run;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
&lt;BR /&gt;
Pretend that sashelp.class had a billion records.&lt;BR /&gt;
&lt;BR /&gt;
Thanks.</description>
      <pubDate>Thu, 17 Sep 2009 22:38:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-report/m-p/72147#M7180</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-09-17T22:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: proc report</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-report/m-p/72148#M7181</link>
      <description>Hi:&lt;BR /&gt;
  It is unlikely that a detail listing report of a billion records would be very useful to anyone. I'm curious why you're creating an output data set (using OUT=) with PROC REPORT. Given your current code, you're reading a billion records, creating a report file of a billion record and then creating an output dataset of that same billion records. It doesn't seem necessary to me.&lt;BR /&gt;
 &lt;BR /&gt;
  On the other hand, if you were to create a SUMMARY report, it might consolidate some of the report rows. For example, if you submitted the following code:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods html file='c:\test.htm';&lt;BR /&gt;
proc report data=sashelp.class nowd;&lt;BR /&gt;
  title 'Summary Report';&lt;BR /&gt;
  column age n,sex;&lt;BR /&gt;
  define age / group;&lt;BR /&gt;
  define sex / across 'Gender';&lt;BR /&gt;
  define n / 'Count';&lt;BR /&gt;
run;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                                           &lt;BR /&gt;
&lt;BR /&gt;
Instead of seeing the 19 report rows (one for each person in SASHELP.CLASS, you would see only 6 report rows, a summary report -- one row for each unique value of AGE in SASHELP.CLASS. &lt;BR /&gt;
 &lt;BR /&gt;
You might get some other ideas about how to use PROC REPORT by referring to this guide on using PROC REPORT in non-interactive mode:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/onlinedoc/v82/techreport_p258.pdf" target="_blank"&gt;http://support.sas.com/documentation/onlinedoc/v82/techreport_p258.pdf&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
Perhaps if you could explain what your goal or desired report is, others might have some alternate task, wizard or procedure suggestions.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 18 Sep 2009 03:10:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-report/m-p/72148#M7181</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-09-18T03:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: proc report</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-report/m-p/72149#M7182</link>
      <description>Hi, Thank you for the help.&lt;BR /&gt;
&lt;BR /&gt;
The reason I am asking proc report, I have a code was from someone else.  I am maintaining this codeand don't want do many changes. The guy used 'proc report' to create output dataset all the time. Proc report normally insert a html to project. I am looking for a way (such options)  to prohibt html output.&lt;BR /&gt;
Any suggion?&lt;BR /&gt;
&lt;BR /&gt;
Cathy</description>
      <pubDate>Tue, 22 Sep 2009 17:04:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-report/m-p/72149#M7182</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-09-22T17:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: proc report</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-report/m-p/72150#M7183</link>
      <description>Hi:&lt;BR /&gt;
  Well, EG adds ODS HTML code around your project code automatically. So one thing you can do is something like this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
        &lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
                        &lt;BR /&gt;
proc report data=sashelp.class nowd &lt;BR /&gt;
     out=procreportdata;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
    &lt;BR /&gt;
What's going to happen is that EG will put the opening HTML statement and then your ODS _ALL_ CLOSE statement will immediately CLOSE all the open destinations, including the LISTING destination.&lt;BR /&gt;
 &lt;BR /&gt;
Then, proc report will run and create your output dataset (which you should then see in your project. Note that I did NOT put any extra ODS HTML statements around my PROC REPORT. In this instance, I am merely using PROC REPORT to make me an OUTPUT dataset using the OUT= option. If you did want to direct your output to another destination, then your code would look like this:&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
        &lt;BR /&gt;
ods _all_ close;  /* Close EG HTML file */&lt;BR /&gt;
                        &lt;BR /&gt;
ods html file='c:\temp\onlymine.html' style=sasweb;  /* create separate HTML file */&lt;BR /&gt;
proc report data=sashelp.class nowd &lt;BR /&gt;
     out=procreportdata;&lt;BR /&gt;
run;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                  &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 22 Sep 2009 19:31:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-report/m-p/72150#M7183</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-09-22T19:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: proc report</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-report/m-p/72151#M7184</link>
      <description>Great! Thank you.</description>
      <pubDate>Wed, 23 Sep 2009 22:20:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-report/m-p/72151#M7184</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-09-23T22:20:50Z</dc:date>
    </item>
  </channel>
</rss>

