<?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 Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-Report/m-p/286844#M58921</link>
    <description>&lt;P&gt;Looks like you're missing the&amp;nbsp;COMPUTE statement that should precede&amp;nbsp;&lt;SPAN&gt;Tot_Forecast=Tot_Budget.sum*Probabilty*0.01;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jul 2016 12:33:33 GMT</pubDate>
    <dc:creator>Tim_SAS</dc:creator>
    <dc:date>2016-07-25T12:33:33Z</dc:date>
    <item>
      <title>PROC Report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Report/m-p/286843#M58920</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This is my code :&lt;/P&gt;&lt;P&gt;Proc report data=Olympics.Case7 nowd headline headskip;&lt;BR /&gt;Column Probability Nbr_of_optys Tot_Budget Tot_Forecast;&lt;BR /&gt;define Probability/Group width=12 descending"Probabilty';&lt;BR /&gt;define Tot_Budget/Analysis SUM FORMAT=Dollar15.2"Tot_Budget";&lt;BR /&gt;define N/"Nbr_of_optys";&lt;BR /&gt;define Tot_Forecast/Computed format=Dollar15.2;&lt;BR /&gt;Tot_Forecast=Tot_Budget.sum*Probabilty*0.01;&lt;BR /&gt;endcomp;&lt;BR /&gt;rbreak after/summarize ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;i am getting a error:&lt;/P&gt;&lt;P&gt;: Statement is not valid or it is used out of proper order.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2016 12:28:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Report/m-p/286843#M58920</guid>
      <dc:creator>Prateek1</dc:creator>
      <dc:date>2016-07-25T12:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Report/m-p/286844#M58921</link>
      <description>&lt;P&gt;Looks like you're missing the&amp;nbsp;COMPUTE statement that should precede&amp;nbsp;&lt;SPAN&gt;Tot_Forecast=Tot_Budget.sum*Probabilty*0.01;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2016 12:33:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Report/m-p/286844#M58921</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2016-07-25T12:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Report/m-p/286845#M58922</link>
      <description>&lt;P&gt;You seem to have mis-matching quotes (started using double and ended using single)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;define Probability/Group width=12 descending"Probabilty';&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2016 12:35:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Report/m-p/286845#M58922</guid>
      <dc:creator>PaulLee</dc:creator>
      <dc:date>2016-07-25T12:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Report/m-p/286846#M58923</link>
      <description>&lt;P&gt;This is a good example of where coding formatting would have highlighted your question - also note there are other typos in that code:&lt;/P&gt;
&lt;P&gt;Here the code is fixed - there was unbalanced quotes around Probability, and missing compute line.&lt;/P&gt;
&lt;PRE&gt;proc report data=olympics.case7 nowd headline headskip;
  column probability nbr_of_optys tot_budget tot_forecast;
  define probability  / group width=12 descending "Probabilty";  
  define tot_budget   / analysis sum format=dollar15.2 "tot_budget";
  define n            / "nbr_of_optys";
  define tot_forecast / computed format=dollar15.2;&lt;BR /&gt;
  compute tot_forecast;
    tot_forecast=tot_budget.sum*probabilty*0.01;
  endcomp;&lt;BR /&gt;
  rbreak after/summarize ;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2016 12:38:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Report/m-p/286846#M58923</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-07-25T12:38:54Z</dc:date>
    </item>
  </channel>
</rss>

