<?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/289097#M59693</link>
    <description>&lt;PRE&gt;
You can make a condition before computing it.

if not missing(Total_Media_Value.sum) and not missing(_probability___) then 
Tot_Forecast = (Total_Media_Value.sum*_probability___)/100;

&lt;/PRE&gt;</description>
    <pubDate>Wed, 03 Aug 2016 04:17:27 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2016-08-03T04:17:27Z</dc:date>
    <item>
      <title>PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT/m-p/288903#M59633</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;i am not getting the last column , the tot_forecast&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data = Olympics2 headline;
column _probability___ (n) Total_Media_Value Tot_Forecast ;
where _probability___ &amp;gt; 0;
define _probability___/group Descending 'Probability';
define n / format = comma6. 'Nbr_of_Optys';
define Total_Media_Value/analysis format = dollar25. 'Tot_Budget';
define Tot_Forecast/computed format = dollar25.;
compute tot_forecast;
Tot_Forecast = (Total_Media_Value.sum*_probability___)/100;
endcomp;
rbreak after / summarize ol ul skip;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;there is an error: Missing values are generated &amp;nbsp;as a result of performing an operation on a each place&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 11:48:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT/m-p/288903#M59633</guid>
      <dc:creator>Prateek1</dc:creator>
      <dc:date>2016-08-02T11:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT/m-p/288904#M59634</link>
      <description>&lt;P&gt;I edited the post for you, so that the code is easier to read. PLEASE use the "little running man" icon to open the subwindow for SAS code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please also post the complete log of the proc report step, so one can see where the missings have effect.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 11:51:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT/m-p/288904#M59634</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-08-02T11:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT/m-p/288946#M59637</link>
      <description>&lt;P&gt;This may also be data related. Without data it is very hard to test code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This link shows how to create data step code that you can post as text or attach as a text file so that we can recreate data: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; to use with your code.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 14:43:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT/m-p/288946#M59637</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-08-02T14:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT/m-p/289097#M59693</link>
      <description>&lt;PRE&gt;
You can make a condition before computing it.

if not missing(Total_Media_Value.sum) and not missing(_probability___) then 
Tot_Forecast = (Total_Media_Value.sum*_probability___)/100;

&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Aug 2016 04:17:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT/m-p/289097#M59693</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-08-03T04:17:27Z</dc:date>
    </item>
  </channel>
</rss>

