<?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: Multiply variables across data sets using a condition in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Multiply-variables-across-data-sets-using-a-condition/m-p/417199#M102480</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/180208"&gt;@patrickchanou&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Yes there are duplicates. data set A has 60000 observations but data set B has 6000.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I think my answer above should get you started. If you need further help please post some sample data - obviously not your real data, but similar enough to explain the issue. It should include both what you have and what you want. Include your current code and the log that shows whatever errors&amp;nbsp; you're encountering.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an example of how that looks:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/Fast-way-to-remove-overlapping-date-spans/m-p/417194" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/Fast-way-to-remove-overlapping-date-spans/m-p/417194&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you ask a generic question, you get generic responses. If you need further help, you need to be more detailed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good Luck.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Nov 2017 19:38:18 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-11-29T19:38:18Z</dc:date>
    <item>
      <title>Multiply variables across data sets using a condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiply-variables-across-data-sets-using-a-condition/m-p/417188#M102474</link>
      <description>&lt;P&gt;Dear Members,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have data set A and data set B located in sasuser library. I want to multiply column A of data set A to column B of data set B to create a new variable column C. The multiply must&amp;nbsp;&amp;nbsp;take place when SS# is equal in both data sets. Data set A has more obs and columns than data set B. When I run the code below with an if condition, it does not work. I got 0 observation in new_data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data new_data;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;set sasuser.columnA sasuser.columnB;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If SS# = SS# then&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;column C = column A * column B;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My log error is: &lt;FONT color="#ff0000"&gt;Statement is not valid or s used out of proper order.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not working so far. Would where a better option? Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 19:13:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiply-variables-across-data-sets-using-a-condition/m-p/417188#M102474</guid>
      <dc:creator>patrickchanou</dc:creator>
      <dc:date>2017-11-29T19:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply variables across data sets using a condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiply-variables-across-data-sets-using-a-condition/m-p/417190#M102475</link>
      <description>&lt;P&gt;If that's your actual code, then you can't use # in a variable name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that's not your actual code, then we need to see your actual code or we can't help you.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 19:17:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiply-variables-across-data-sets-using-a-condition/m-p/417190#M102475</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-11-29T19:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply variables across data sets using a condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiply-variables-across-data-sets-using-a-condition/m-p/417193#M102476</link>
      <description>&lt;P&gt;A SET statement will append the two data sets, but to do your calculation you need the data side by side, more commonly referred to as a MERGE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's an entire chapter in the SAS Docs about how to combine data;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=p15jvywi5avt3cn1bee8r6c33ux1.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=p15jvywi5avt3cn1bee8r6c33ux1.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's probably more complicated but should look something like this to start. However, you also need to be careful if there are duplicate entries for each SS and you do need to sort the data first.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data new_data;

merge data1 data2;

by SS;

columnC = ColumnA * ColumnB;

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Another link that may be helpful is a YouTube tutorial on merges:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://video.sas.com/detail/video/4572997800001/merging-sas-tables-in-a-data-step?autoStart=true&amp;amp;q=merge" target="_blank"&gt;http://video.sas.com/detail/video/4572997800001/merging-sas-tables-in-a-data-step?autoStart=true&amp;amp;q=merge&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're using SAS Studio or EG, consider using the GUI tools/Tasks or Snippets and then looking at the code generated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 19:26:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiply-variables-across-data-sets-using-a-condition/m-p/417193#M102476</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-29T19:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply variables across data sets using a condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiply-variables-across-data-sets-using-a-condition/m-p/417195#M102478</link>
      <description>&lt;P&gt;&lt;STRONG&gt;data new_data;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;set sasuser.columnA sasuser.columnB;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If SS = SS then&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;column C = column A * column B;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;# is not the issue&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 19:23:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiply-variables-across-data-sets-using-a-condition/m-p/417195#M102478</guid>
      <dc:creator>patrickchanou</dc:creator>
      <dc:date>2017-11-29T19:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply variables across data sets using a condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiply-variables-across-data-sets-using-a-condition/m-p/417197#M102479</link>
      <description>&lt;P&gt;Yes there are duplicates. data set A has 60000 observations but data set B has 6000.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 19:29:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiply-variables-across-data-sets-using-a-condition/m-p/417197#M102479</guid>
      <dc:creator>patrickchanou</dc:creator>
      <dc:date>2017-11-29T19:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply variables across data sets using a condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiply-variables-across-data-sets-using-a-condition/m-p/417199#M102480</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/180208"&gt;@patrickchanou&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Yes there are duplicates. data set A has 60000 observations but data set B has 6000.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I think my answer above should get you started. If you need further help please post some sample data - obviously not your real data, but similar enough to explain the issue. It should include both what you have and what you want. Include your current code and the log that shows whatever errors&amp;nbsp; you're encountering.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an example of how that looks:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/Fast-way-to-remove-overlapping-date-spans/m-p/417194" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/Fast-way-to-remove-overlapping-date-spans/m-p/417194&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you ask a generic question, you get generic responses. If you need further help, you need to be more detailed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good Luck.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 19:38:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiply-variables-across-data-sets-using-a-condition/m-p/417199#M102480</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-29T19:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply variables across data sets using a condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiply-variables-across-data-sets-using-a-condition/m-p/417239#M102485</link>
      <description>&lt;P&gt;This is an example of taking all the records from column A data set and if there is a matching SSN in the column B dataset add the column b value to the data and multiply as described.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sql;
   create table want as
   select a.ssn, a.columna, b.columnb, a.columna*b.columnb as columnc
   from sasuser.columna as a
        left join
        sasuser.columnb as b
        on a.ssn=b.ssn
   ;
quit;&lt;/PRE&gt;
&lt;P&gt;The a. and b. are ways that Proc SQL uses as shorthand for the data sets the assignment of the short hand is in the FROM clause with optional &lt;STRONG&gt;as&lt;/STRONG&gt; .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You did not indicate if any of the SSN values might be duplicated in either set or what to do with the duplicates. This multiplies all of the matches if there are duplicates. If the SSN in the ColumnA data set only appears once but is in ColumnB multiple times there will be one record for each match in ColumnB.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 21:08:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiply-variables-across-data-sets-using-a-condition/m-p/417239#M102485</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-11-29T21:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply variables across data sets using a condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiply-variables-across-data-sets-using-a-condition/m-p/417252#M102488</link>
      <description>&lt;P&gt;&lt;STRONG&gt;data new_data;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;set sasuser.dataA sasuser.dataB;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If SS = SS then&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;column C = column A (from dataA)&amp;nbsp;* column B (from dataB);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dataA has&amp;nbsp;2 numeric variable columns grade&amp;nbsp;and SS&amp;nbsp;with 60000 obs&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dataB has&amp;nbsp;2 numeric variable columns weight with SS with&amp;nbsp;6000 obs&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SS is the column we want to use to sort and do the multiplication by. There are lots of duplicates in the column SS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let me know if that explains better. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 21:29:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiply-variables-across-data-sets-using-a-condition/m-p/417252#M102488</guid>
      <dc:creator>patrickchanou</dc:creator>
      <dc:date>2017-11-29T21:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply variables across data sets using a condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiply-variables-across-data-sets-using-a-condition/m-p/417260#M102490</link>
      <description>&lt;P&gt;Million thanks ballardw. They are many duplicates. I want them multiplied also. I will run the code and advise further based on the results.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 22:34:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiply-variables-across-data-sets-using-a-condition/m-p/417260#M102490</guid>
      <dc:creator>patrickchanou</dc:creator>
      <dc:date>2017-11-29T22:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply variables across data sets using a condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiply-variables-across-data-sets-using-a-condition/m-p/417401#M102528</link>
      <description>&lt;P&gt;I did run the code. It generated 1 error. It is not finding Sampling_weight&amp;nbsp;or columnb but Sampling_weight is located in data set b in sasuser library. See below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="_rp_V4 ms-font-weight-regular ms-font-color-neutralDark rpHighlightAllClass rpHighlightBodyClass"&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri,sans-serif" size="2"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;FONT color="navy" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt; background-color: white;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt; &lt;FONT color="navy" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt; background-color: white;"&gt;&lt;STRONG&gt;sql&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt; background-color: white;"&gt;; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri,sans-serif" size="2"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt; background-color: white;"&gt;create&lt;/SPAN&gt;&lt;/FONT&gt; &lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt; background-color: white;"&gt;table&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt; background-color: white;"&gt; want &lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt; background-color: white;"&gt;as&lt;/SPAN&gt;&lt;/FONT&gt; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri,sans-serif" size="2"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt; background-color: white;"&gt;select&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt; background-color: white;"&gt; a.CHIC, a.net_payment_error, b.Sampling_weight, a.net_payment_error * b.Sampling_weight &lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt; background-color: white;"&gt;as&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt; background-color: white;"&gt; extra_payment_error&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri,sans-serif" size="2"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt; background-color: white;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri,sans-serif" size="2"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt; background-color: white;"&gt;from&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt; background-color: white;"&gt; sasuser.net_payment_error &lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt; background-color: white;"&gt;as&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt; background-color: white;"&gt; a &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri,sans-serif" size="2"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt; background-color: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt; background-color: white;"&gt;left&lt;/SPAN&gt;&lt;/FONT&gt; &lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt; background-color: white;"&gt;join&lt;/SPAN&gt;&lt;/FONT&gt; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri,sans-serif" size="2"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt; background-color: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sasuser.Sampling_weight &lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt; background-color: white;"&gt;as&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt; background-color: white;"&gt; b &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri,sans-serif" size="2"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;FONT color="blue" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt; background-color: white;"&gt;on&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt; background-color: white;"&gt; a.CHIC = b.CHIC; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri,sans-serif" size="2"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;FONT color="navy" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt; background-color: white;"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="black" face="Courier New" size="2"&gt;&lt;SPAN style="font-size: 10pt; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Calibri,sans-serif" size="2"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;FONT color="red" face="SAS Monospace" size="3"&gt;&lt;SPAN style="font-size: 12pt;"&gt;ERROR: File SASUSER.SAMPLING_WEIGHT.DATA does not exist.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 30 Nov 2017 13:47:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiply-variables-across-data-sets-using-a-condition/m-p/417401#M102528</guid>
      <dc:creator>patrickchanou</dc:creator>
      <dc:date>2017-11-30T13:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Multiply variables across data sets using a condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiply-variables-across-data-sets-using-a-condition/m-p/417439#M102539</link>
      <description>&lt;P&gt;It's saying you don't have a dataset named sample_weight, check for a typo in the name.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're certain you have it, please display a proc contents.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=sasuser.sampling_weights;run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Nov 2017 15:43:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiply-variables-across-data-sets-using-a-condition/m-p/417439#M102539</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-30T15:43:31Z</dc:date>
    </item>
  </channel>
</rss>

