<?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: question on update function in proc sql in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/question-on-update-function-in-proc-sql/m-p/106252#M22147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could make it execute by adding the UPDATE_POLICY=NONE but why?&amp;nbsp; If you leave it coded the way it is the update will happen for every row as every value of GAME in dataset A is by definition in dataset A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Feb 2013 03:04:06 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2013-02-12T03:04:06Z</dc:date>
    <item>
      <title>question on update function in proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question-on-update-function-in-proc-sql/m-p/106249#M22144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lets say I want to update table A based on a column in table B. Table B will have a list of games (like A, B, C, D) and if those games are in table A, I want to decrease a certain value. if I do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;proc sql ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;&amp;nbsp; update A set value=value-1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;&amp;nbsp; where game in (select game from B)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;if dataset B has a game listed more than once, will the value decrease more than once? IE if its listed twice, the value in dataset A will decrease by 2.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 02:37:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question-on-update-function-in-proc-sql/m-p/106249#M22144</guid>
      <dc:creator>Xamius32</dc:creator>
      <dc:date>2013-02-12T02:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: question on update function in proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question-on-update-function-in-proc-sql/m-p/106250#M22145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and one more question, if I wanted to do the same thing, but using simply another column in table A, is that possible? When I try it by changing B to A, it says sql cant use the table it is updating to update.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 02:42:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question-on-update-function-in-proc-sql/m-p/106250#M22145</guid>
      <dc:creator>Xamius32</dc:creator>
      <dc:date>2013-02-12T02:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: question on update function in proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question-on-update-function-in-proc-sql/m-p/106251#M22146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No.&amp;nbsp; It will process each row in A and decide whether that GAME exists in B, if it does it will execute the update.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 02:57:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question-on-update-function-in-proc-sql/m-p/106251#M22146</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-02-12T02:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: question on update function in proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question-on-update-function-in-proc-sql/m-p/106252#M22147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could make it execute by adding the UPDATE_POLICY=NONE but why?&amp;nbsp; If you leave it coded the way it is the update will happen for every row as every value of GAME in dataset A is by definition in dataset A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 03:04:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question-on-update-function-in-proc-sql/m-p/106252#M22147</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-02-12T03:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: question on update function in proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/question-on-update-function-in-proc-sql/m-p/106253#M22148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I realize by you saying that I am looking at this in the wrong way in terms of my goals. Anyways, thx for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 04:01:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/question-on-update-function-in-proc-sql/m-p/106253#M22148</guid>
      <dc:creator>Xamius32</dc:creator>
      <dc:date>2013-02-12T04:01:47Z</dc:date>
    </item>
  </channel>
</rss>

