<?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: create new var conditionally in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/create-new-var-conditionally/m-p/524307#M32775</link>
    <description>&lt;P&gt;Not exactly sure what you are looking for .&amp;nbsp; But, If you want the New Var to have a different value depending on the values in origination, you may use a case statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;case when 
	origination=85
	then  'A'
	when
	origination=95
	then 'B'
End as GuarantorDep&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Replace the values 'A' and 'B' as per your requirement.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jan 2019 16:04:37 GMT</pubDate>
    <dc:creator>r_behata</dc:creator>
    <dc:date>2019-01-03T16:04:37Z</dc:date>
    <item>
      <title>create new var conditionally</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/create-new-var-conditionally/m-p/524293#M32773</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I want to add a new var as Guarantor Dependent at origination (85) or after origination (95), How do I write the code.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;select &amp;nbsp;&lt;BR /&gt;b.mktDesc,&amp;nbsp;&amp;nbsp;&lt;BR /&gt;a.acctno,&amp;nbsp;&amp;nbsp;&lt;BR /&gt;a.acctSName,&amp;nbsp;&amp;nbsp;&lt;BR /&gt;a.balToday,&amp;nbsp;&amp;nbsp;&lt;BR /&gt;a.commitment,&amp;nbsp;&amp;nbsp;&lt;BR /&gt;a.restructFlg,&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;FONT color="#0000ff"&gt;&lt;U&gt;&lt;STRONG&gt;GuarantorDep = '',&amp;nbsp;&lt;/STRONG&gt;&lt;/U&gt;&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;a.PD,&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 15:31:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/create-new-var-conditionally/m-p/524293#M32773</guid>
      <dc:creator>Sultana</dc:creator>
      <dc:date>2019-01-03T15:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: create new var conditionally</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/create-new-var-conditionally/m-p/524307#M32775</link>
      <description>&lt;P&gt;Not exactly sure what you are looking for .&amp;nbsp; But, If you want the New Var to have a different value depending on the values in origination, you may use a case statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;case when 
	origination=85
	then  'A'
	when
	origination=95
	then 'B'
End as GuarantorDep&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Replace the values 'A' and 'B' as per your requirement.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 16:04:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/create-new-var-conditionally/m-p/524307#M32775</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2019-01-03T16:04:37Z</dc:date>
    </item>
  </channel>
</rss>

