<?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: Problem usng PDV in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Problem-usng-PDV/m-p/300235#M1182</link>
    <description>&lt;P&gt;data sas2;&lt;BR /&gt;set d.p3;&lt;/P&gt;&lt;P&gt;by Probability____;&lt;BR /&gt;if first.Probability____=1 then tot_budget=0;&lt;BR /&gt;tot_budget+Total_Media_Value;&lt;BR /&gt;if last.Probability____ then output;&lt;/P&gt;&lt;P&gt;if Probability____=0 then delete;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;still getting the same error&lt;/P&gt;&lt;P&gt;log&lt;/P&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: BY variables are not properly sorted on data set D.P3.&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Sep 2016 22:30:39 GMT</pubDate>
    <dc:creator>rishabhmehra13</dc:creator>
    <dc:date>2016-09-22T22:30:39Z</dc:date>
    <item>
      <title>Problem usng PDV</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-usng-PDV/m-p/300233#M1180</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want a sum of total media value grouped by probability&lt;/P&gt;&lt;P&gt;the data set is already sorted by me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data sas1;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;set d.p3;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;by Probability____;&lt;BR /&gt;if first.Total_Media_Value=1 then tot_budget=0;&lt;BR /&gt;tot_budget+Total_Media_Value;&lt;BR /&gt;if last.Total_Media_Value then output;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;log&lt;/P&gt;&lt;DIV class="sasNote"&gt;NOTE: Variable first.Total_Media_Value is uninitialized.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Variable last.Total_Media_Value is uninitialized.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: BY variables are not properly sorted on data set D.P3.&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 Sep 2016 22:10:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-usng-PDV/m-p/300233#M1180</guid>
      <dc:creator>rishabhmehra13</dc:creator>
      <dc:date>2016-09-22T22:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem usng PDV</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-usng-PDV/m-p/300234#M1181</link>
      <description>&lt;P&gt;Why not use proc means?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can only use FIRST/LAST on variables that are included in your BY statement.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 22:24:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-usng-PDV/m-p/300234#M1181</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-09-22T22:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem usng PDV</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-usng-PDV/m-p/300235#M1182</link>
      <description>&lt;P&gt;data sas2;&lt;BR /&gt;set d.p3;&lt;/P&gt;&lt;P&gt;by Probability____;&lt;BR /&gt;if first.Probability____=1 then tot_budget=0;&lt;BR /&gt;tot_budget+Total_Media_Value;&lt;BR /&gt;if last.Probability____ then output;&lt;/P&gt;&lt;P&gt;if Probability____=0 then delete;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;still getting the same error&lt;/P&gt;&lt;P&gt;log&lt;/P&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: BY variables are not properly sorted on data set D.P3.&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 22:30:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-usng-PDV/m-p/300235#M1182</guid>
      <dc:creator>rishabhmehra13</dc:creator>
      <dc:date>2016-09-22T22:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem usng PDV</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-usng-PDV/m-p/300237#M1183</link>
      <description>&lt;P&gt;Then you probably haven't sorted your data.&lt;/P&gt;
&lt;P&gt;Sort your data.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 22:32:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-usng-PDV/m-p/300237#M1183</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-09-22T22:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem usng PDV</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-usng-PDV/m-p/300240#M1184</link>
      <description>its sorted by probabilty&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Thu, 22 Sep 2016 22:43:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-usng-PDV/m-p/300240#M1184</guid>
      <dc:creator>rishabhmehra13</dc:creator>
      <dc:date>2016-09-22T22:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem usng PDV</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-usng-PDV/m-p/300265#M1187</link>
      <description>&lt;P&gt;Post the Proc sort and data step and the corresponding log that shows the error. Clearly SAS doesn't think it is.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All values must be ascending for the probability.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2016 02:33:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-usng-PDV/m-p/300265#M1187</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-09-23T02:33:28Z</dc:date>
    </item>
  </channel>
</rss>

