<?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 data steps criterion problem in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/data-steps-criterion-problem/m-p/148696#M262278</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a quick question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a new variable in a data set. However, I am struggling with my criteria. I want SAS to check variable A and if it has any data, it will create a new variable called B with the entry 'okay'&lt;/P&gt;&lt;P&gt;I used this logic :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if a ^= ' ' then b= 'okay';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data I working with is character, so I figured that this should work, but it is not picking up every entry. Is there any other way to have a criterion fire if your variable HAS data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Mar 2014 14:48:13 GMT</pubDate>
    <dc:creator>jpeevy</dc:creator>
    <dc:date>2014-03-19T14:48:13Z</dc:date>
    <item>
      <title>data steps criterion problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-steps-criterion-problem/m-p/148696#M262278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a quick question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a new variable in a data set. However, I am struggling with my criteria. I want SAS to check variable A and if it has any data, it will create a new variable called B with the entry 'okay'&lt;/P&gt;&lt;P&gt;I used this logic :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if a ^= ' ' then b= 'okay';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data I working with is character, so I figured that this should work, but it is not picking up every entry. Is there any other way to have a criterion fire if your variable HAS data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 14:48:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-steps-criterion-problem/m-p/148696#M262278</guid>
      <dc:creator>jpeevy</dc:creator>
      <dc:date>2014-03-19T14:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: data steps criterion problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-steps-criterion-problem/m-p/148697#M262279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the missing and cmiss functions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 14:51:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-steps-criterion-problem/m-p/148697#M262279</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-03-19T14:51:50Z</dc:date>
    </item>
  </channel>
</rss>

