<?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: Strange behavior of proc REPORT in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Strange-behavior-of-proc-REPORT/m-p/604#M294</link>
    <description>Sarunas:&lt;BR /&gt;
  Did you turn on the display of your SAS log in the Information Delivery Portal (IDP) to check for errors? It should be a check box before you hit the Execute button in the Portal. &lt;BR /&gt;
  I tested the following stored process in both EG and the IDP -- and it worked OK. It is a simple example but the value of gpct is based on variables from the SAS dataset.&lt;BR /&gt;
  Try this code as a stored process in both EG and the IDP. It does not have any parameters and can be registered to generate streaming output. &lt;BR /&gt;
  Also, this topic probably falls outside the realm of ODS -- as I believe your problem is not really a PROC REPORT issue nor an ODS issue. Can you email me directly and if I can't figure out what the issue is, I can get you in touch with someone who can. (email to Cynthia.Zender@sas.com)&lt;BR /&gt;
  Here's the code. Test it out and email me directly.&lt;BR /&gt;
Thanks, cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
*ProcessBody;&lt;BR /&gt;
&lt;BR /&gt;
%STPBEGIN;&lt;BR /&gt;
&lt;BR /&gt;
data shoes;&lt;BR /&gt;
  set sashelp.shoes;&lt;BR /&gt;
  where Product contains "Dress";&lt;BR /&gt;
  if product = "Women's Dress" then do;&lt;BR /&gt;
	 wamt = sales;&lt;BR /&gt;
     end;&lt;BR /&gt;
     else do;&lt;BR /&gt;
	 mamt = sales;&lt;BR /&gt;
     end;&lt;BR /&gt;
  Product= "Dress Shoes";&lt;BR /&gt;
  output;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc sort data=shoes out=shoes;&lt;BR /&gt;
  by region product;&lt;BR /&gt;
  where Product contains "Dress";&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc report data=shoes nowd split='*';&lt;BR /&gt;
  title "Dress Shoe Sales by Region";&lt;BR /&gt;
  TITLE2 "PROC REPORT COMPUTE in SP";&lt;BR /&gt;
&lt;BR /&gt;
  column Region Product Sales &lt;BR /&gt;
        ('Gender Totals' wamt mamt) gpct;      &lt;BR /&gt;
  define Region / group;&lt;BR /&gt;
  define Product / group noprint;&lt;BR /&gt;
  define Sales / sum;&lt;BR /&gt;
  define wamt / sum "Women's*Shoes" f=dollar14.;&lt;BR /&gt;
  define mamt / sum "Men's*Shoes" f=dollar14.;&lt;BR /&gt;
  define gpct / computed 'Women/Men*Sales*Percent' f=9.2;&lt;BR /&gt;
  compute gpct;&lt;BR /&gt;
     gpct = (wamt.sum / mamt.sum) * 100;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
  rbreak after / summarize; &lt;BR /&gt;
run; &lt;BR /&gt;
&lt;BR /&gt;
%STPEND;&lt;BR /&gt;
[/pre]</description>
    <pubDate>Wed, 10 May 2006 16:05:04 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2006-05-10T16:05:04Z</dc:date>
    <item>
      <title>Strange behavior of proc REPORT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Strange-behavior-of-proc-REPORT/m-p/603#M293</link>
      <description>Hi everyone,&lt;BR /&gt;
I have met a strange problem and I have no idea how to solve it. If someone could help me I'd appreciate it very much :&lt;BR /&gt;
&lt;BR /&gt;
I created a SAS Stored process with Enerprise Guide, that is actualy just a proc REPORT. In this proc REPORT I define one report item as COMPUTED. I compute it according to values of preceding report items that are taken from SAS dataset. &lt;BR /&gt;
&lt;BR /&gt;
Strange thing is that when I launch this stored process in the Enterprise Guide, everything work fine, but when I try to run this Stored process in SAS Delivery Portal 2, all values for COMUPTED report item are missing. &lt;BR /&gt;
&lt;BR /&gt;
Is it possible somehow to solve this problem ? &lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance.</description>
      <pubDate>Wed, 10 May 2006 12:50:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Strange-behavior-of-proc-REPORT/m-p/603#M293</guid>
      <dc:creator>sarunas</dc:creator>
      <dc:date>2006-05-10T12:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Strange behavior of proc REPORT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Strange-behavior-of-proc-REPORT/m-p/604#M294</link>
      <description>Sarunas:&lt;BR /&gt;
  Did you turn on the display of your SAS log in the Information Delivery Portal (IDP) to check for errors? It should be a check box before you hit the Execute button in the Portal. &lt;BR /&gt;
  I tested the following stored process in both EG and the IDP -- and it worked OK. It is a simple example but the value of gpct is based on variables from the SAS dataset.&lt;BR /&gt;
  Try this code as a stored process in both EG and the IDP. It does not have any parameters and can be registered to generate streaming output. &lt;BR /&gt;
  Also, this topic probably falls outside the realm of ODS -- as I believe your problem is not really a PROC REPORT issue nor an ODS issue. Can you email me directly and if I can't figure out what the issue is, I can get you in touch with someone who can. (email to Cynthia.Zender@sas.com)&lt;BR /&gt;
  Here's the code. Test it out and email me directly.&lt;BR /&gt;
Thanks, cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
*ProcessBody;&lt;BR /&gt;
&lt;BR /&gt;
%STPBEGIN;&lt;BR /&gt;
&lt;BR /&gt;
data shoes;&lt;BR /&gt;
  set sashelp.shoes;&lt;BR /&gt;
  where Product contains "Dress";&lt;BR /&gt;
  if product = "Women's Dress" then do;&lt;BR /&gt;
	 wamt = sales;&lt;BR /&gt;
     end;&lt;BR /&gt;
     else do;&lt;BR /&gt;
	 mamt = sales;&lt;BR /&gt;
     end;&lt;BR /&gt;
  Product= "Dress Shoes";&lt;BR /&gt;
  output;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc sort data=shoes out=shoes;&lt;BR /&gt;
  by region product;&lt;BR /&gt;
  where Product contains "Dress";&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc report data=shoes nowd split='*';&lt;BR /&gt;
  title "Dress Shoe Sales by Region";&lt;BR /&gt;
  TITLE2 "PROC REPORT COMPUTE in SP";&lt;BR /&gt;
&lt;BR /&gt;
  column Region Product Sales &lt;BR /&gt;
        ('Gender Totals' wamt mamt) gpct;      &lt;BR /&gt;
  define Region / group;&lt;BR /&gt;
  define Product / group noprint;&lt;BR /&gt;
  define Sales / sum;&lt;BR /&gt;
  define wamt / sum "Women's*Shoes" f=dollar14.;&lt;BR /&gt;
  define mamt / sum "Men's*Shoes" f=dollar14.;&lt;BR /&gt;
  define gpct / computed 'Women/Men*Sales*Percent' f=9.2;&lt;BR /&gt;
  compute gpct;&lt;BR /&gt;
     gpct = (wamt.sum / mamt.sum) * 100;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
  rbreak after / summarize; &lt;BR /&gt;
run; &lt;BR /&gt;
&lt;BR /&gt;
%STPEND;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Wed, 10 May 2006 16:05:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Strange-behavior-of-proc-REPORT/m-p/604#M294</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2006-05-10T16:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Strange behavior of proc REPORT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Strange-behavior-of-proc-REPORT/m-p/605#M295</link>
      <description>Thank you for your assistance, Cynthia,&lt;BR /&gt;
I have sent an email to you.&lt;BR /&gt;
With best regards,&lt;BR /&gt;
Sarunas</description>
      <pubDate>Thu, 11 May 2006 08:37:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Strange-behavior-of-proc-REPORT/m-p/605#M295</guid>
      <dc:creator>sarunas</dc:creator>
      <dc:date>2006-05-11T08:37:08Z</dc:date>
    </item>
  </channel>
</rss>

