<?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: How to Create a new variable from existing data set in SAS Software for Learning Community</title>
    <link>https://communities.sas.com/t5/SAS-Software-for-Learning/How-to-Create-a-new-variable-from-existing-data-set/m-p/841072#M738</link>
    <description>&lt;P&gt;Extract the state into a separate variable if it is not already. Then either an IF/then/else block of code can assign the value you want.&lt;/P&gt;
&lt;P&gt;Or a custom format could display the values of the variable with the state value as desired with the existing values unchanged.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Oct 2022 06:41:19 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-10-27T06:41:19Z</dc:date>
    <item>
      <title>How to Create a new variable from existing data set</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/How-to-Create-a-new-variable-from-existing-data-set/m-p/841051#M736</link>
      <description>&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Create a new variable for place of residence, classifying everyone as residing in Mumbai or somewhere else (i.e., group guj, delhi, etc., into a single “Other” category).&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I have an existing data set in which one column is named as address: in which diff states are mentioned&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Now I need to group them in two only&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;one mumbai and rest of all in other&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;What code should be written?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 01:26:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/How-to-Create-a-new-variable-from-existing-data-set/m-p/841051#M736</guid>
      <dc:creator>Tirth8</dc:creator>
      <dc:date>2022-10-27T01:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to Create a new variable from existing data set</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/How-to-Create-a-new-variable-from-existing-data-set/m-p/841072#M738</link>
      <description>&lt;P&gt;Extract the state into a separate variable if it is not already. Then either an IF/then/else block of code can assign the value you want.&lt;/P&gt;
&lt;P&gt;Or a custom format could display the values of the variable with the state value as desired with the existing values unchanged.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 06:41:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/How-to-Create-a-new-variable-from-existing-data-set/m-p/841072#M738</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-10-27T06:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to Create a new variable from existing data set</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/How-to-Create-a-new-variable-from-existing-data-set/m-p/841091#M739</link>
      <description>&lt;P&gt;If you have existing data, then please post a representative sample and your desired result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Makes it much easier to provide a usable code answer.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 09:50:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/How-to-Create-a-new-variable-from-existing-data-set/m-p/841091#M739</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-10-27T09:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to Create a new variable from existing data set</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/How-to-Create-a-new-variable-from-existing-data-set/m-p/842802#M764</link>
      <description>if index(upcase(address),'MUMBAI)&amp;gt;0 then state = 'Mumbai' else state = 'Other';</description>
      <pubDate>Mon, 07 Nov 2022 01:33:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/How-to-Create-a-new-variable-from-existing-data-set/m-p/842802#M764</guid>
      <dc:creator>tom_grant</dc:creator>
      <dc:date>2022-11-07T01:33:51Z</dc:date>
    </item>
  </channel>
</rss>

