<?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: Proc SQL case in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-case/m-p/180217#M13762</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;ok lets go like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;state p_st&lt;/P&gt;&lt;P&gt;XY&amp;nbsp;&amp;nbsp;&amp;nbsp; PA&lt;/P&gt;&lt;P&gt;SC&amp;nbsp;&amp;nbsp; LA&lt;/P&gt;&lt;P&gt;FL&amp;nbsp; &lt;/P&gt;&lt;P&gt;GA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I WANT A CODE WHEN P_ST IS MISSING THEN TAKE A VALUE FROM STATE OTHERWISE P_ST&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Feb 2015 19:28:03 GMT</pubDate>
    <dc:creator>chennupriya</dc:creator>
    <dc:date>2015-02-24T19:28:03Z</dc:date>
    <item>
      <title>Proc SQL case</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-case/m-p/180213#M13758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;I Have a dataset &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;x y and I have to create z&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;CA 02 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;PA&amp;nbsp; MX&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;GA&amp;nbsp; FL&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;BM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;HI&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;i have to create Z variable in dataset and x and y has state codes &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;when y in 02 then we assign SC some state code but when not numberic then Y as it is but when missing then shd do x=y&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;and. Now Z. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;Z&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;SC&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;MX&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;FL&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;BM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;HI&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;CAn anyone pls help&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 16:00:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-case/m-p/180213#M13758</guid>
      <dc:creator>chennupriya</dc:creator>
      <dc:date>2015-02-24T16:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL case</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-case/m-p/180214#M13759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't understand what you are saying.&lt;/P&gt;&lt;P&gt;Please provide a complete result data set with X, Y and Z columns.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 16:20:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-case/m-p/180214#M13759</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2015-02-24T16:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL case</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-case/m-p/180215#M13760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;HHi &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;I have state&lt;/SPAN&gt; codes in X and Y but I need to create Z coloumn from Y &lt;/P&gt;&lt;P&gt;and Y has numeric and character data when state codes in 02 they gave me conversion that 02 means SC and 03 means VA but Y has character data also&amp;nbsp; like MX and FL then leave as it is &lt;/P&gt;&lt;P&gt;aand Y has missing data then Z coloumn takes value from X coloumn as Y has missing values we u notice X Y and Z which I gave u above explains it now I am stuck how to create Z &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 16:28:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-case/m-p/180215#M13760</guid>
      <dc:creator>chennupriya</dc:creator>
      <dc:date>2015-02-24T16:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL case</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-case/m-p/180216#M13761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neither do we, unless you clarify your problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your sample output above where does SC come from and why is PA missing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 16:45:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-case/m-p/180216#M13761</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-02-24T16:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL case</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-case/m-p/180217#M13762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;ok lets go like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;state p_st&lt;/P&gt;&lt;P&gt;XY&amp;nbsp;&amp;nbsp;&amp;nbsp; PA&lt;/P&gt;&lt;P&gt;SC&amp;nbsp;&amp;nbsp; LA&lt;/P&gt;&lt;P&gt;FL&amp;nbsp; &lt;/P&gt;&lt;P&gt;GA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I WANT A CODE WHEN P_ST IS MISSING THEN TAKE A VALUE FROM STATE OTHERWISE P_ST&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 19:28:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-case/m-p/180217#M13762</guid>
      <dc:creator>chennupriya</dc:creator>
      <dc:date>2015-02-24T19:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL case</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-case/m-p/180218#M13763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the coalesce function, see the documentation regarding the usage details:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002518172.htm" title="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002518172.htm"&gt;SAS(R) 9.2 Language Reference: Dictionary, Fourth Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Z = coalesce(p_st, state);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 19:51:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-SQL-case/m-p/180218#M13763</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-02-24T19:51:12Z</dc:date>
    </item>
  </channel>
</rss>

