<?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: Replacing zeros with missing values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Replacing-zeros-with-missing-values/m-p/363658#M86150</link>
    <description>&lt;P&gt;Perfect, thanks for pointing that out,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jun 2017 00:26:19 GMT</pubDate>
    <dc:creator>Yegen</dc:creator>
    <dc:date>2017-06-02T00:26:19Z</dc:date>
    <item>
      <title>Replacing zeros with missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replacing-zeros-with-missing-values/m-p/363653#M86146</link>
      <description>&lt;P&gt;I know the following code works well, but does anyone have alternative suggestions to write a more efficient code that replaces zeros with missing values?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here is a sample dataset:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.sample;
 infile cards expandtabs truncover;
input 	ID	shrout	shrout1	shrout2;
cards;
26232409	0	2	50997000
26232409	0	3	50997000
26232409	53598	0	50997000
10623630	10097	2	0
5856168			.		.	.
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here is the code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.sample;
	modify work.sample;
	array vars{*} shrout shrout1 shrout2; 
	do i = 1 to dim(vars);
        if vars{i}=0 then call missing(vars{i});
	end;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 00:13:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replacing-zeros-with-missing-values/m-p/363653#M86146</guid>
      <dc:creator>Yegen</dc:creator>
      <dc:date>2017-06-02T00:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing zeros with missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replacing-zeros-with-missing-values/m-p/363656#M86148</link>
      <description>&lt;P&gt;This was actually asked yesterday on here, see latest posts. You only need the last part, PROC STDIZE&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/Back-fill-empty-rows-with-zero-values/m-p/363458#M86078" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/Back-fill-empty-rows-with-zero-values/m-p/363458#M86078&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 00:21:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replacing-zeros-with-missing-values/m-p/363656#M86148</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-02T00:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing zeros with missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replacing-zeros-with-missing-values/m-p/363658#M86150</link>
      <description>&lt;P&gt;Perfect, thanks for pointing that out,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 00:26:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replacing-zeros-with-missing-values/m-p/363658#M86150</guid>
      <dc:creator>Yegen</dc:creator>
      <dc:date>2017-06-02T00:26:19Z</dc:date>
    </item>
  </channel>
</rss>

