<?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: Help with PROC REPORT in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-PROC-REPORT/m-p/67240#M19232</link>
    <description>Tim&lt;BR /&gt;
&lt;BR /&gt;
Sorry I found that I had a syntax error. I was able to get the compute to work, kind of. It is giving me a value of zero, but i think that should be easy to fix. Thanks you very much for the information and the help.</description>
    <pubDate>Wed, 26 Aug 2009 17:35:00 GMT</pubDate>
    <dc:creator>Nooby1Konoby</dc:creator>
    <dc:date>2009-08-26T17:35:00Z</dc:date>
    <item>
      <title>Help with PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-PROC-REPORT/m-p/67237#M19229</link>
      <description>I am very new to SAS and I'm having a problem with PROC REPORT. I have looked through "The Little SAS Book" and some online doc, but can't find an answer. I have some raw data that I'm trying to calculate.  can anyone tell me how to subtract one variable from another to produce a variable that is not in the input data or is that not possible with PROC REPORT? This is a sample of my input and also of my SAS code, if that helps. I am trying to sum VOLCAPGB then subtract the variable VOLCAPGB from the grouped variable CONTRACT to produce REMAINING. I basically want the end result to look like this(below in bold), of course this example is just a portion of my data, its rather large. Any help would be greatly appreciated. &lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;CONTRACT    VOLCAPGB       REMAINING&lt;BR /&gt;
163000                                160                    162840&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
(Input Data)&lt;BR /&gt;
&lt;BR /&gt;
CONTRACT    VOLCAPGB&lt;BR /&gt;
                    &lt;BR /&gt;
 163000        27   &lt;BR /&gt;
 163000        27   &lt;BR /&gt;
 163000        27   &lt;BR /&gt;
 163000        27   &lt;BR /&gt;
 163000        27   &lt;BR /&gt;
 163000        27   &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
 PROC REPORT DATA=MAP HEADLINE NOWD;              &lt;BR /&gt;
                                                  &lt;BR /&gt;
   COLUMN CONTRACT VOLCAPGB REMAINING;&lt;BR /&gt;
                                                  &lt;BR /&gt;
   DEFINE CONTRACT / GROUP;                       &lt;BR /&gt;
   DEFINE VOLCAPGB / ANALYSIS SUM;                &lt;BR /&gt;
   DEFINE REMAINING / ?????????????????????</description>
      <pubDate>Wed, 26 Aug 2009 16:03:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-PROC-REPORT/m-p/67237#M19229</guid>
      <dc:creator>Nooby1Konoby</dc:creator>
      <dc:date>2009-08-26T16:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help with PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-PROC-REPORT/m-p/67238#M19230</link>
      <description>Sounds like REMAINING is a "computed" variable. See this doc: &lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a002473627.htm#a003072061" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a002473627.htm#a003072061&lt;/A&gt;.</description>
      <pubDate>Wed, 26 Aug 2009 16:50:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-PROC-REPORT/m-p/67238#M19230</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2009-08-26T16:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help with PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-PROC-REPORT/m-p/67239#M19231</link>
      <description>I tried to compute the REMAINING variable and my job fails with the below message; which appears that I'm not able to compute the variable with another one that is being analized. I'll keep digging to see what I can come up with. Thanks again for the help. &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
ERROR: There is more than one ANALYSIS usage associated with&lt;BR /&gt;
             the column defined by the following elements.        &lt;BR /&gt;
                &lt;BR /&gt;
       Name                              Usage              &lt;BR /&gt;
       --------------------------------  --------           &lt;BR /&gt;
       VOLCAPGB                          ANALYSIS   &lt;BR /&gt;
       REMAINING                         COMPUTED</description>
      <pubDate>Wed, 26 Aug 2009 17:13:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-PROC-REPORT/m-p/67239#M19231</guid>
      <dc:creator>Nooby1Konoby</dc:creator>
      <dc:date>2009-08-26T17:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help with PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-PROC-REPORT/m-p/67240#M19232</link>
      <description>Tim&lt;BR /&gt;
&lt;BR /&gt;
Sorry I found that I had a syntax error. I was able to get the compute to work, kind of. It is giving me a value of zero, but i think that should be easy to fix. Thanks you very much for the information and the help.</description>
      <pubDate>Wed, 26 Aug 2009 17:35:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-PROC-REPORT/m-p/67240#M19232</guid>
      <dc:creator>Nooby1Konoby</dc:creator>
      <dc:date>2009-08-26T17:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help with PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-PROC-REPORT/m-p/67241#M19233</link>
      <description>Since VOLCAPGB is an analysis variable you'll have to refer to its value by its statistic, VOLCAPGB.SUM. See "Using Compute Blocks" on this page: &lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a000146851.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a000146851.htm&lt;/A&gt;.</description>
      <pubDate>Wed, 26 Aug 2009 19:57:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-PROC-REPORT/m-p/67241#M19233</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2009-08-26T19:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help with PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-PROC-REPORT/m-p/67242#M19234</link>
      <description>Tim&lt;BR /&gt;
&lt;BR /&gt;
Thank you very much! This worked like a charm. I'll have to spend some more time reading over the links that you provided me. I'm glad I joined this forum, thanks again!</description>
      <pubDate>Thu, 27 Aug 2009 12:13:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-PROC-REPORT/m-p/67242#M19234</guid>
      <dc:creator>Nooby1Konoby</dc:creator>
      <dc:date>2009-08-27T12:13:34Z</dc:date>
    </item>
  </channel>
</rss>

