<?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: Macro to change variable values in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Macro-to-change-variable-values/m-p/47465#M12743</link>
    <description>Use a DATA step with an ARRAY, as coded below:&lt;BR /&gt;
&lt;BR /&gt;
ARRAY ANUMVARS (*) _NUMERIC_;&lt;BR /&gt;
DO I=1 TO DIM(ANUMVARS);&lt;BR /&gt;
  IF ANUMVARS(I) = . THEN ANUMVARS(I) = 0;&lt;BR /&gt;
END;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Tue, 26 Jan 2010 20:33:09 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2010-01-26T20:33:09Z</dc:date>
    <item>
      <title>Macro to change variable values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Macro-to-change-variable-values/m-p/47464#M12742</link>
      <description>Hi Folks,&lt;BR /&gt;
I have a dataset with 30 different variables with each cell being either a ONE or a . ( missing numeric value, Now I would like to change the . ( numeric blank) to ZERO. I don't want to use proc format. I just need a physical ZERO in place of that . (BLANK). I can use a if..then 30 times to do that .. but can someone suggest a better way. &lt;BR /&gt;
&lt;BR /&gt;
Thanks &lt;BR /&gt;
&lt;BR /&gt;
Matt</description>
      <pubDate>Tue, 26 Jan 2010 20:13:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Macro-to-change-variable-values/m-p/47464#M12742</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-01-26T20:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to change variable values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Macro-to-change-variable-values/m-p/47465#M12743</link>
      <description>Use a DATA step with an ARRAY, as coded below:&lt;BR /&gt;
&lt;BR /&gt;
ARRAY ANUMVARS (*) _NUMERIC_;&lt;BR /&gt;
DO I=1 TO DIM(ANUMVARS);&lt;BR /&gt;
  IF ANUMVARS(I) = . THEN ANUMVARS(I) = 0;&lt;BR /&gt;
END;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Tue, 26 Jan 2010 20:33:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Macro-to-change-variable-values/m-p/47465#M12743</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-01-26T20:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to change variable values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Macro-to-change-variable-values/m-p/47466#M12744</link>
      <description>With SAS/Stat procedure STDIZE you can easily replace all those missing values with any value you like including zero.</description>
      <pubDate>Tue, 26 Jan 2010 23:44:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Macro-to-change-variable-values/m-p/47466#M12744</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2010-01-26T23:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to change variable values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Macro-to-change-variable-values/m-p/47467#M12745</link>
      <description>If you only want to see missings as physical zero in reporting, then change no data! All you need - only before the reporting procedure, just set [pre]    option  missing= '0' ;[/pre]</description>
      <pubDate>Thu, 28 Jan 2010 11:08:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Macro-to-change-variable-values/m-p/47467#M12745</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-01-28T11:08:56Z</dc:date>
    </item>
  </channel>
</rss>

