<?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: Recoding a NULL response value to a value of 0 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Recoding-a-NULL-response-value-to-a-value-of-0/m-p/667330#M199801</link>
    <description>&lt;P&gt;&lt;STRIKE&gt;If you need this only for display purposes then you can also use:&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;options missing='0';&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;Only works for numerical variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jul 2020 01:25:10 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2020-07-07T01:25:10Z</dc:date>
    <item>
      <title>Recoding a NULL response value to a value of 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Recoding-a-NULL-response-value-to-a-value-of-0/m-p/667321#M199794</link>
      <description>&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #333333; font-family: Arial,Helvetica,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;I have 50 survey variables, named AB1, AB2, AB3,...,AB50.&amp;nbsp; Most of these variables contain a survey response, either answer choice A, B, or C.&amp;nbsp; In some cases, there is no response in which the field has NULL entered in the cell.&amp;nbsp; How do I change all of these NULL responses to a 0 without doing an if/then statement for each individual variable?&amp;nbsp; Thanks for any help! &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 00:45:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Recoding-a-NULL-response-value-to-a-value-of-0/m-p/667321#M199794</guid>
      <dc:creator>Bluekeys49</dc:creator>
      <dc:date>2020-07-07T00:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Recoding a NULL response value to a value of 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Recoding-a-NULL-response-value-to-a-value-of-0/m-p/667326#M199798</link>
      <description>&lt;PRE&gt;data want;&lt;BR /&gt;    set have;&lt;BR /&gt;    array abvar{*} $ AB1-AB50;&lt;BR /&gt;    do i = 1 to dim(abvar);&lt;BR /&gt;        if missing(abvar(i)) then abvar(i) = '0';&lt;BR /&gt;    end; &lt;BR /&gt;    drop i;&lt;BR /&gt;run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Jul 2020 01:27:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Recoding-a-NULL-response-value-to-a-value-of-0/m-p/667326#M199798</guid>
      <dc:creator>ketpt42</dc:creator>
      <dc:date>2020-07-07T01:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Recoding a NULL response value to a value of 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Recoding-a-NULL-response-value-to-a-value-of-0/m-p/667330#M199801</link>
      <description>&lt;P&gt;&lt;STRIKE&gt;If you need this only for display purposes then you can also use:&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;options missing='0';&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;Only works for numerical variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 01:25:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Recoding-a-NULL-response-value-to-a-value-of-0/m-p/667330#M199801</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2020-07-07T01:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Recoding a NULL response value to a value of 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Recoding-a-NULL-response-value-to-a-value-of-0/m-p/667333#M199803</link>
      <description>I neglected to mention that this survey is being imported in from Excel. The questions that were skipped (no response) were automatically populated with the word NULL when imported into SAS for analysis. So, wanting to change all occurrences of this text NULL value globally to 0 in any response field it exists.</description>
      <pubDate>Tue, 07 Jul 2020 01:14:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Recoding-a-NULL-response-value-to-a-value-of-0/m-p/667333#M199803</guid>
      <dc:creator>Bluekeys49</dc:creator>
      <dc:date>2020-07-07T01:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Recoding a NULL response value to a value of 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Recoding-a-NULL-response-value-to-a-value-of-0/m-p/667335#M199805</link>
      <description>If variables are character, zero should be quoted</description>
      <pubDate>Tue, 07 Jul 2020 01:18:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Recoding-a-NULL-response-value-to-a-value-of-0/m-p/667335#M199805</guid>
      <dc:creator>sustagens</dc:creator>
      <dc:date>2020-07-07T01:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Recoding a NULL response value to a value of 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Recoding-a-NULL-response-value-to-a-value-of-0/m-p/667336#M199806</link>
      <description>&lt;P&gt;Change &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/278672"&gt;@ketpt42&lt;/a&gt;'s code above to &lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if abvar(i)='NULL' then abvar(i) = '0';&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Jul 2020 01:21:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Recoding-a-NULL-response-value-to-a-value-of-0/m-p/667336#M199806</guid>
      <dc:creator>sustagens</dc:creator>
      <dc:date>2020-07-07T01:21:20Z</dc:date>
    </item>
  </channel>
</rss>

