<?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: How do I enter data in cells that were left blank in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-enter-data-in-cells-that-were-left-blank/m-p/506903#M135926</link>
    <description>&lt;P&gt;Good catch! Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 23 Oct 2018 16:14:41 GMT</pubDate>
    <dc:creator>DK13</dc:creator>
    <dc:date>2018-10-23T16:14:41Z</dc:date>
    <item>
      <title>How do I enter data in cells that were left blank</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-enter-data-in-cells-that-were-left-blank/m-p/506893#M135923</link>
      <description>&lt;P&gt;I have a data set with a column that indicates poor sleep, but instead of filling in all of the cells, they only indicated "y" if the patient had poor sleep.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I fill in the blank cells so they contain "n"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried making a new column:&lt;/P&gt;&lt;P&gt;DATA polphar.Polypharm_DataV3;&lt;BR /&gt;SET polyphar.polypharm_data;&lt;BR /&gt;IF poor_sleep= "." then poor_sleepYN= "N";&lt;BR /&gt;IF poor_sleep= "y" THEN poor_sleepYN= "Y";&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it keeps giving me this error:&amp;nbsp;&lt;SPAN&gt;ERROR: Libref POLPHAR is not assigned.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using SAS University Edition.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 16:05:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-enter-data-in-cells-that-were-left-blank/m-p/506893#M135923</guid>
      <dc:creator>DK13</dc:creator>
      <dc:date>2018-10-23T16:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I enter data in cells that were left blank</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-enter-data-in-cells-that-were-left-blank/m-p/506897#M135924</link>
      <description>if missing(poor_sleep) then poor_sleepYN="N";&lt;BR /&gt;else poor_sleepYN = upcase(poor_sleepYN);</description>
      <pubDate>Tue, 23 Oct 2018 16:10:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-enter-data-in-cells-that-were-left-blank/m-p/506897#M135924</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-23T16:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I enter data in cells that were left blank</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-enter-data-in-cells-that-were-left-blank/m-p/506899#M135925</link>
      <description>&lt;P&gt;Actually, you just have a typo, not the y in one and not the other.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;DATA &lt;FONT size="5"&gt;&lt;STRONG&gt;polphar&lt;/STRONG&gt;&lt;/FONT&gt;.Polypharm_DataV3;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SET &lt;FONT size="5"&gt;&lt;STRONG&gt;pol&lt;FONT color="#FF0000"&gt;y&lt;/FONT&gt;phar&lt;/STRONG&gt;&lt;/FONT&gt;.polypharm_data;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/239622"&gt;@DK13&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have a data set with a column that indicates poor sleep, but instead of filling in all of the cells, they only indicated "y" if the patient had poor sleep.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I fill in the blank cells so they contain "n"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried making a new column:&lt;/P&gt;
&lt;P&gt;DATA polphar.Polypharm_DataV3;&lt;BR /&gt;SET polyphar.polypharm_data;&lt;BR /&gt;IF poor_sleep= "." then poor_sleepYN= "N";&lt;BR /&gt;IF poor_sleep= "y" THEN poor_sleepYN= "Y";&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it keeps giving me this error:&amp;nbsp;&lt;SPAN&gt;ERROR: Libref POLPHAR is not assigned.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am using SAS University Edition.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 16:11:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-enter-data-in-cells-that-were-left-blank/m-p/506899#M135925</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-23T16:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I enter data in cells that were left blank</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-enter-data-in-cells-that-were-left-blank/m-p/506903#M135926</link>
      <description>&lt;P&gt;Good catch! Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 16:14:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-enter-data-in-cells-that-were-left-blank/m-p/506903#M135926</guid>
      <dc:creator>DK13</dc:creator>
      <dc:date>2018-10-23T16:14:41Z</dc:date>
    </item>
  </channel>
</rss>

