<?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: Determine whether a cell is populated or not then do something in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Determine-whether-a-cell-is-populated-or-not-then-do-something/m-p/432520#M281787</link>
    <description>&lt;P&gt;MISSING()?&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jan 2018 21:31:24 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-01-30T21:31:24Z</dc:date>
    <item>
      <title>Determine whether a cell is populated or not then do something</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Determine-whether-a-cell-is-populated-or-not-then-do-something/m-p/432518#M281786</link>
      <description>&lt;P&gt;I'm trying to find code&amp;nbsp;&lt;SPAN&gt;that, in the PROC or DATA step, will create a new variable 1 for each row where the city variable contains data.&amp;nbsp;&lt;/SPAN&gt;I've found lots of examples on how to look for specifics within the data using IN or CONTAINS but I can't find an example of a code that looks to see, like a binary, if it is populated or not. I can create the new numeric variable easily enough, it's identifying the correct cells I am having issues with.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 14:21:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Determine-whether-a-cell-is-populated-or-not-then-do-something/m-p/432518#M281786</guid>
      <dc:creator>spcoman</dc:creator>
      <dc:date>2018-01-31T14:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Determine whether a cell is populated or not then do something</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Determine-whether-a-cell-is-populated-or-not-then-do-something/m-p/432520#M281787</link>
      <description>&lt;P&gt;MISSING()?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2018 21:31:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Determine-whether-a-cell-is-populated-or-not-then-do-something/m-p/432520#M281787</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-30T21:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Determine whether a cell is populated or not then do something</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Determine-whether-a-cell-is-populated-or-not-then-do-something/m-p/432524#M281788</link>
      <description>&lt;P&gt;That's when you use boolean expressions. Simply take advantage of it-&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
set sashelp.class;
if _n_ in (1,3,5,7,9) then city='Chicago';
run;

data want;
set have;
missing_check=missing(city);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Jan 2018 21:38:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Determine-whether-a-cell-is-populated-or-not-then-do-something/m-p/432524#M281788</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-01-30T21:38:05Z</dc:date>
    </item>
  </channel>
</rss>

