<?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 Proc Report By statement help in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-By-statement-help/m-p/73480#M21290</link>
    <description>I am trying to use the by variable in proc report using ODS HTML to create seperate tables for each value of the by variable but I get the following error. &lt;BR /&gt;
&lt;BR /&gt;
ERROR: Output data set cannot be created for BY groups.&lt;BR /&gt;
&lt;BR /&gt;
Does anyone know why I would get this error and how I can resolve it?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
mdsasuser</description>
    <pubDate>Mon, 28 Sep 2009 15:47:51 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-09-28T15:47:51Z</dc:date>
    <item>
      <title>Proc Report By statement help</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-By-statement-help/m-p/73480#M21290</link>
      <description>I am trying to use the by variable in proc report using ODS HTML to create seperate tables for each value of the by variable but I get the following error. &lt;BR /&gt;
&lt;BR /&gt;
ERROR: Output data set cannot be created for BY groups.&lt;BR /&gt;
&lt;BR /&gt;
Does anyone know why I would get this error and how I can resolve it?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
mdsasuser</description>
      <pubDate>Mon, 28 Sep 2009 15:47:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-By-statement-help/m-p/73480#M21290</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-09-28T15:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report By statement help</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-By-statement-help/m-p/73481#M21291</link>
      <description>Share your code, please -- preferably the SAS log generated output with your complete code revealed.  Info about SAS environment, version, remote/local SAS execution, are also most helpful information to have.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 28 Sep 2009 15:51:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-By-statement-help/m-p/73481#M21291</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-09-28T15:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report By statement help</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-By-statement-help/m-p/73482#M21292</link>
      <description>ods html body = '\\&lt;PATH&gt;\report_1.html';&lt;BR /&gt;
&lt;BR /&gt;
proc report data = acs.rep_summ_1  out = nowd headline headskip missing&lt;BR /&gt;
style(report)={font_face=arial bordercolor=gray}&lt;BR /&gt;
style(column)={background=white font_size=.5 borderwidth = 0}&lt;BR /&gt;
style(header)={background= blue foreground= white font_size =1.5 just = center}; &lt;BR /&gt;
&lt;BR /&gt;
Title "Using by Statement"&lt;BR /&gt;
&lt;BR /&gt;
by var1 notsorted;&lt;BR /&gt;
&lt;BR /&gt;
column var2 var3 var4 var5 var6 var7 var8; &lt;BR /&gt;
&lt;BR /&gt;
define var2/display descending group left ;&lt;BR /&gt;
define var3/display group left;&lt;BR /&gt;
define var4/display group left;&lt;BR /&gt;
define var5/display analysis sum left;&lt;BR /&gt;
define var6/display  analysis sum left ;&lt;BR /&gt;
define var7/display  analysis sum left ;&lt;BR /&gt;
define var8/display left;&lt;BR /&gt;
&lt;BR /&gt;
define var7/computed ;&lt;BR /&gt;
compute var7;&lt;BR /&gt;
        var7= var5.sum - var6.sum;&lt;BR /&gt;
endcomp; &lt;BR /&gt;
&lt;BR /&gt;
define var8/computed format=percent6.2;&lt;BR /&gt;
compute var8;&lt;BR /&gt;
	var8= var6.sum/var5.sum;&lt;BR /&gt;
endcomp;&lt;BR /&gt;
&lt;BR /&gt;
break after var2/ ol skip summarize style={background=gray foreground=white font_size=.8 font_weight=bold};&lt;BR /&gt;
rbreak after/dol summarize style=[font_weight=bold];&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ODS HTML CLOSE;&lt;BR /&gt;
&lt;BR /&gt;
I am using SAS 9.1 and remote SAS execution.&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;/PATH&gt;</description>
      <pubDate>Mon, 28 Sep 2009 16:07:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-By-statement-help/m-p/73482#M21292</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-09-28T16:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report By statement help</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-By-statement-help/m-p/73483#M21293</link>
      <description>[pre]&lt;BR /&gt;
proc report data = acs.rep_summ_1 out = nowd headline headskip missing&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
Are you sure you want "out = nowd" on the PROC statement? The OUT= option takes a data set name. NOWD is the NOWINDOW option. Remove "out =" from the PROC statement unless you really want to create an output data set, in which case you need to add the name of the output data set. &lt;BR /&gt;
&lt;BR /&gt;
However, in 9.1 PROC REPORT doesn't support the OUT= option when you have a BY statement.</description>
      <pubDate>Mon, 28 Sep 2009 16:34:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-By-statement-help/m-p/73483#M21293</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2009-09-28T16:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report By statement help</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-By-statement-help/m-p/73484#M21294</link>
      <description>In the ODS statement, you specified BODY=  and because you have the BY statement code, SAS wants to write separate framed-output components, requiring BODY= but also FRAME= and CONTENTS=.  I am surprised you did not receive any other diagnostic error messages.  Suggest you either code a FILE= parameter or re-consider the ODS HTML statement coding parameters being used.  There is many examples and technical reference material at the SAS support &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  website for consideration.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
SAS Notes and Concepts for ODS  - identify the ODS HTML section:&lt;BR /&gt;
&lt;A href="http://support.sas.com/rnd/base/ods/templateFAQ/index.html" target="_blank"&gt;http://support.sas.com/rnd/base/ods/templateFAQ/index.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
SAS ODS User's Guide - Dictionary of ODS Language Statements &lt;BR /&gt;
&lt;BR /&gt;
ODS HTML Statement&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/odsug/61723/HTML/default/a002175885.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/odsug/61723/HTML/default/a002175885.htm&lt;/A&gt;</description>
      <pubDate>Mon, 28 Sep 2009 22:08:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-By-statement-help/m-p/73484#M21294</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-09-28T22:08:52Z</dc:date>
    </item>
  </channel>
</rss>

