<?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 renaming the variable observations or combining the into one in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/renaming-the-variable-observations-or-combining-the-into-one/m-p/431140#M27833</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have got data like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;App_type_flag&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rural&lt;/P&gt;&lt;P&gt;Consumer&lt;/P&gt;&lt;P&gt;Commercial&lt;/P&gt;&lt;P&gt;Agri&lt;/P&gt;&lt;P&gt;Mining&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Questions 1.&amp;nbsp;&amp;nbsp;&amp;nbsp; What I want to is : When I run the grouping of this data in proc sql...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I want to combine the Rural and Agri as one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so the App_type_flag&amp;nbsp; should take Rural and Agri as one observation ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;so Rural + Agri&amp;nbsp; should be considered as Agri . So App_type_flag&amp;nbsp; just show,&amp;nbsp; Agri, consumer, commercial, mining .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What would be the appropriate way to do this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should I create a new variable or just change the rural to agri with some code,&amp;nbsp; please advise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question2 :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also I want to segment the data to remove those records which are withdrawn and it matches the certain app_types&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; tk.SBOS_final;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; tk.application_fj;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;where&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; final_decision_flag not in (&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Withdrawn'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;also want to add where app_type_flag not in ('TEMP' , ' ' )&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;so trying to say where app_type_flag doesn't match TEMP and blanks and the final_decision flag is not in Withdrawn,&amp;nbsp; how do I combine them and how to write the code effectively.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Please advise.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;thanks&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jan 2018 00:50:58 GMT</pubDate>
    <dc:creator>bondtk</dc:creator>
    <dc:date>2018-01-26T00:50:58Z</dc:date>
    <item>
      <title>renaming the variable observations or combining the into one</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/renaming-the-variable-observations-or-combining-the-into-one/m-p/431140#M27833</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have got data like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;App_type_flag&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rural&lt;/P&gt;&lt;P&gt;Consumer&lt;/P&gt;&lt;P&gt;Commercial&lt;/P&gt;&lt;P&gt;Agri&lt;/P&gt;&lt;P&gt;Mining&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Questions 1.&amp;nbsp;&amp;nbsp;&amp;nbsp; What I want to is : When I run the grouping of this data in proc sql...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I want to combine the Rural and Agri as one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so the App_type_flag&amp;nbsp; should take Rural and Agri as one observation ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;so Rural + Agri&amp;nbsp; should be considered as Agri . So App_type_flag&amp;nbsp; just show,&amp;nbsp; Agri, consumer, commercial, mining .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What would be the appropriate way to do this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should I create a new variable or just change the rural to agri with some code,&amp;nbsp; please advise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question2 :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also I want to segment the data to remove those records which are withdrawn and it matches the certain app_types&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; tk.SBOS_final;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; tk.application_fj;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;where&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; final_decision_flag not in (&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Withdrawn'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;also want to add where app_type_flag not in ('TEMP' , ' ' )&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;so trying to say where app_type_flag doesn't match TEMP and blanks and the final_decision flag is not in Withdrawn,&amp;nbsp; how do I combine them and how to write the code effectively.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Please advise.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;thanks&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 00:50:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/renaming-the-variable-observations-or-combining-the-into-one/m-p/431140#M27833</guid>
      <dc:creator>bondtk</dc:creator>
      <dc:date>2018-01-26T00:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: renaming the variable observations or combining the into one</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/renaming-the-variable-observations-or-combining-the-into-one/m-p/431149#M27835</link>
      <description>&lt;P&gt;data have:&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;_App_type_flag=App_type_flag;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if&amp;nbsp;App_type_flag= 'Rural' then&amp;nbsp; _App_type_flag='Agri';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then do &lt;STRONG&gt;group by&lt;/STRONG&gt; using &lt;STRONG&gt;_App_type_flag&lt;/STRONG&gt;.. You can keep both the columns just to check the flow of data just in case.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 01:57:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/renaming-the-variable-observations-or-combining-the-into-one/m-p/431149#M27835</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-01-26T01:57:49Z</dc:date>
    </item>
  </channel>
</rss>

