<?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 assigning multiple variables in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/assigning-multiple-variables/m-p/589415#M14898</link>
    <description>&lt;P&gt;I have two data sets, and I want to assign a continent to each country. how do I do that?&lt;/P&gt;&lt;P&gt;I have attached the data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2019 16:31:38 GMT</pubDate>
    <dc:creator>genius99</dc:creator>
    <dc:date>2019-09-17T16:31:38Z</dc:date>
    <item>
      <title>assigning multiple variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/assigning-multiple-variables/m-p/589415#M14898</link>
      <description>&lt;P&gt;I have two data sets, and I want to assign a continent to each country. how do I do that?&lt;/P&gt;&lt;P&gt;I have attached the data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 16:31:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/assigning-multiple-variables/m-p/589415#M14898</guid>
      <dc:creator>genius99</dc:creator>
      <dc:date>2019-09-17T16:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: assigning multiple variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/assigning-multiple-variables/m-p/589418#M14900</link>
      <description>&lt;P&gt;Create a value format that connects countries to continents, and use that:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value $continents
  "Switzerland" = "Europe"
  "Austria" = "Europe"
  "USA" = "North America"
  /* and so on */
;
run;

data want;
set have;
continent = put(country,$continent.);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Sep 2019 16:44:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/assigning-multiple-variables/m-p/589418#M14900</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-09-17T16:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: assigning multiple variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/assigning-multiple-variables/m-p/589420#M14901</link>
      <description>&lt;P&gt;May be if you post the sample data and expected output it would help to get better responses.&lt;/P&gt;
&lt;P&gt;However I will try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can derive the continent based on the country something as below , alternatively you can use the format if we can know all countries and respective continents&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;If country='Germany' then continent='Europe';
else if country='China' then continent='Asia';
etc., &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 16:48:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/assigning-multiple-variables/m-p/589420#M14901</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2019-09-17T16:48:47Z</dc:date>
    </item>
  </channel>
</rss>

