<?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: replace '.' with 0 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/491800#M129073</link>
    <description>&lt;P&gt;Here is how to fix that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;options&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;missing&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; a;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;y=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;x=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;y+x ;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;put&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; (x y)(=) ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;run&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 01 Sep 2018 02:37:32 GMT</pubDate>
    <dc:creator>VDD</dc:creator>
    <dc:date>2018-09-01T02:37:32Z</dc:date>
    <item>
      <title>replace '.' with 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/491786#M129068</link>
      <description>&lt;P&gt;hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to replace '.' with 0 in the following dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-09-01 at 1.57.40 am.png" style="width: 329px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22936i7EACA4FBADBBC351/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-09-01 at 1.57.40 am.png" alt="Screen Shot 2018-09-01 at 1.57.40 am.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;except for the first column, the rest is the number of application per month during the period between 2005 and 2015, namely, from 'application200501' to 'application201512'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to use array&amp;nbsp;statement which is failed. Could you please give me some suggestion?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;France&lt;/P&gt;</description>
      <pubDate>Sat, 01 Sep 2018 01:04:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/491786#M129068</guid>
      <dc:creator>France</dc:creator>
      <dc:date>2018-09-01T01:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: replace '.' with 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/491787#M129069</link>
      <description>&lt;P&gt;Please show the code you tried with the array statement, and describe how it failed.&amp;nbsp; Did you get an error?&amp;nbsp; Did you get an unexpected result?&lt;/P&gt;</description>
      <pubDate>Sat, 01 Sep 2018 01:17:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/491787#M129069</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2018-09-01T01:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: replace '.' with 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/491790#M129070</link>
      <description>&lt;P&gt;put this before your data step or at the top of your program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options missing = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Sep 2018 01:35:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/491790#M129070</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-09-01T01:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: replace '.' with 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/491793#M129072</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/122002"&gt;@VDD&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;put this before your data step or at the top of your program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;options missing = 0;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That will change how missing values are &lt;EM&gt;displayed&lt;/EM&gt;, but will not recode the actual value.&amp;nbsp; The value stored in the data would still be missing. e.g.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;1    options missing=0 ;
2
3    data a ;
4      x=. ;
5      y=x+5 ;
6      put (x y)(=) ;
7    run ;

x=0 y=0
NOTE: Missing values were generated as a result of performing an operation on missing
      values.
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Sep 2018 01:59:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/491793#M129072</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2018-09-01T01:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: replace '.' with 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/491800#M129073</link>
      <description>&lt;P&gt;Here is how to fix that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;options&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;missing&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; a;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;y=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;x=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;y+x ;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;put&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; (x y)(=) ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;run&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Sep 2018 02:37:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/491800#M129073</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-09-01T02:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: replace '.' with 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/491802#M129074</link>
      <description>&lt;P&gt;1 options missing=0;&lt;/P&gt;&lt;P&gt;2 data a;&lt;/P&gt;&lt;P&gt;3 y=5;&lt;/P&gt;&lt;P&gt;4 x=.;&lt;/P&gt;&lt;P&gt;5 y+x ;&lt;/P&gt;&lt;P&gt;6&lt;/P&gt;&lt;P&gt;7 put (x y )(=) ;&lt;/P&gt;&lt;P&gt;8 x+y-4;&lt;/P&gt;&lt;P&gt;9 put (x) (=);&lt;/P&gt;&lt;P&gt;10 run ;&lt;/P&gt;&lt;P&gt;x=0 y=5&lt;/P&gt;&lt;P&gt;x=1&lt;/P&gt;</description>
      <pubDate>Sat, 01 Sep 2018 03:13:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/491802#M129074</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-09-01T03:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: replace '.' with 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/491812#M129081</link>
      <description>&lt;P&gt;Do this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc transpose
  data=have
  out=want (
    compress=yes
    rename=(
      col1=applications
      _name_=period
    )
    where=(applications ne .)
  )
;
copy psn_name;
var application:;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You will find that normalized tables are much easier to work with, and you don't waste space for null values.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Sep 2018 06:28:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/491812#M129081</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-09-01T06:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: replace '.' with 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/491816#M129084</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class;
 set sashelp.class;
 call missing(age);
run;
proc stdize data=class out=want missing=0 reponly;
var _numeric_;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 01 Sep 2018 10:59:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/491816#M129084</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-09-01T10:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: replace '.' with 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/491897#M129150</link>
      <description>&lt;P&gt;Dear Quentin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your advise.&amp;nbsp; I firstly try to merge each data set and&amp;nbsp; replace '.' with '0' by following codes,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA Step4.number_of_patent_end ;
  MERGE Step3.Number_of_appln_pat2005 - Step3.Number_of_appln_pat2015 ;
  BY psn_name;
RUN;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;DATA Step5.ar_number_of_patent_end ;&lt;BR /&gt; SET Step4.number_of_patent_end ;&lt;BR /&gt; ARRAY application(132) application200501 - application201512 ;&lt;BR /&gt; DO i= 1 TO 132;&lt;BR /&gt; IF application(i) eq . THEN application(i) = 0 ;&lt;BR /&gt; END;&lt;BR /&gt;RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;99 DATA Step5.ar_number_of_patent_end ;&lt;BR /&gt;100 SET Step4.number_of_patent_end ;&lt;BR /&gt;101 ARRAY application(132) application200501 - application201512 ;&lt;BR /&gt;ERROR: Too many variables defined for the dimension(s) specified for the array application.&lt;BR /&gt;102 DO i= 1 TO 132;&lt;BR /&gt;103 IF application(i) eq . THEN application(i) = 0 ;&lt;BR /&gt;104 END;&lt;BR /&gt;105 RUN;&lt;BR /&gt;&lt;BR /&gt;NOTE: Character values have been converted to numeric values at the places given by: (Line):(Column).&lt;BR /&gt; 103:5&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set STEP5.AR_NUMBER_OF_PATENT_END may be incomplete. When this step was stopped&lt;BR /&gt; there were 0 observations and 134 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt; real time 0.72 seconds&lt;BR /&gt; cpu time 0.04 seconds&lt;BR /&gt;&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;so I&amp;nbsp;would like to&amp;nbsp;replace '.' with '0' for each data set and then merge each data set by following codes&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro array_pat;
   %local q;
   %do q=2005 %to 2015;

DATA Step4.ar_number_of_appln_pat&amp;amp;q ;
    SET Step3.number_of_appln_pat&amp;amp;q ;
    ARRAY application(12) application&amp;amp;q.01 - application&amp;amp;q.12 ;
    DO i= 1 TO 12;
    IF application(i) eq . THEN application(i) = 0 ;
    END;
RUN;

%mend array_pat;
 
%array_pat


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;, but the result shows that,&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;84   %macro array_pat;
85      %local q;
86      %do q=2005 %to 2015;
87
88   DATA Step4.ar_number_of_appln_pat&amp;amp;q ;
89       SET Step3.number_of_appln_pat&amp;amp;q ;
90       ARRAY application(12) application&amp;amp;q.01 - application&amp;amp;q.12 ;
91       DO i= 1 TO 12;
92       IF application(i) eq . THEN application(i) = 0 ;
93       END;
94   RUN;
95
96   %mend array_pat;
ERROR: There were 1 unclosed %DO statements.  The macro ARRAY_PAT will not be compiled.
ERROR: A dummy macro will be compiled.
97
98   %array_pat
     -
     180
WARNING: Apparent invocation of macro ARRAY_PAT not resolved.

ERROR 180-322: Statement is not valid or it is used out of proper order.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Could you give me some suggestion about this please ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance,&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;France&lt;/P&gt;</description>
      <pubDate>Sun, 02 Sep 2018 16:00:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/491897#M129150</guid>
      <dc:creator>France</dc:creator>
      <dc:date>2018-09-02T16:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: replace '.' with 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/491899#M129151</link>
      <description>&lt;P&gt;The error message is very clear. You have a %DO but no matching %END.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Sep 2018 16:19:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/491899#M129151</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-09-02T16:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: replace '.' with 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/491903#M129153</link>
      <description>&lt;P&gt;I think what you have&lt;/P&gt;&lt;P&gt;&lt;SPAN class="token macroname"&gt;%array_pat&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="token macroname"&gt;needs to have a semicolon&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="token macroname"&gt;%array_pat;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Sep 2018 16:46:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/491903#M129153</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-09-02T16:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: replace '.' with 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/491921#M129170</link>
      <description>&lt;P&gt;Dear VDD,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your suggestion,&lt;/P&gt;&lt;P&gt;by using the codes,&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro array_pat;
   %local q;
   %do q=2005 %to 2015;

DATA Step4.ar_number_of_appln_pat&amp;amp;q ;
    SET Step3.number_of_appln_pat&amp;amp;q ; 
    ARRAY application(12) application&amp;amp;q.01 - application&amp;amp;q.12 ;
    DO i= 1 TO 12;
    IF application(i) eq . THEN application(i) = 0 ;
    %END;
RUN;

%mend array_pat;
 
%array_pat；&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;the result shows that&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: Line generated by the invoked macro "ARRAY_PAT".
21     DATA Step4.ar_number_of_appln_pat&amp;amp;q ;     SET Step3.number_of_appln_pat&amp;amp;q ;     ARRAY
      -
      117
21 ! application(12) application&amp;amp;q.01 - application&amp;amp;q.12 ;     DO i= 1 TO 12;     IF application(i) eq
21 !  . THEN application(i) = 0 ;

ERROR 117-185: There was 1 unclosed DO block.

NOTE: Line generated by the invoked macro "ARRAY_PAT".
23    RUN;
         -
         117
ERROR 117-185: There was 1 unclosed DO block.

NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set STEP4.AR_NUMBER_OF_APPLN_PAT2015 may be incomplete.  When this step was stopped
         there were 0 observations and 14 variables.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Could you please give me some advice for it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;</description>
      <pubDate>Sun, 02 Sep 2018 19:50:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/491921#M129170</guid>
      <dc:creator>France</dc:creator>
      <dc:date>2018-09-02T19:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: replace '.' with 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/491923#M129172</link>
      <description>&lt;P&gt;A do needs an end, and a %do needs a %end.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Sep 2018 20:00:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/491923#M129172</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-09-02T20:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: replace '.' with 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/491925#M129173</link>
      <description>&lt;P&gt;the final code is&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro array_pat;
   %local q;
   %do q=2005 %to 2015;

DATA Step4.ar_number_of_appln_pat&amp;amp;q ;
    SET Step3.number_of_appln_pat&amp;amp;q ; 
    ARRAY application(12) application&amp;amp;q.01 - application&amp;amp;q.12 ;
    DO i= 1 TO 12;
    IF application(i) eq . THEN application(i) = 0 ;
	END;
    DROP i;

   %END;
RUN;

%mend array_pat;
 
%array_pat；&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;thank you all.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Sep 2018 20:20:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/491925#M129173</guid>
      <dc:creator>France</dc:creator>
      <dc:date>2018-09-02T20:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: replace '.' with 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/491929#M129176</link>
      <description>&lt;P&gt;Your last data step will be missing the RUN statement because of misaligned loops.&amp;nbsp; I find it helps to treat the macro code and regular code separately when indenting the code to help keep the separation clearer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro array_pat;
%local q;
%do q=2005 %to 2015;

DATA Step4.ar_number_of_appln_pat&amp;amp;q ;
    SET Step3.number_of_appln_pat&amp;amp;q ; 
    ARRAY application(12) application&amp;amp;q.01 - application&amp;amp;q.12 ;
    DO i= 1 TO 12;
        IF application(i) eq . THEN application(i) = 0 ;
    END;
    DROP i;
RUN;

%end;
%mend array_pat;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 02 Sep 2018 21:35:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/491929#M129176</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-09-02T21:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: replace '.' with 0</title>
      <link>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/492345#M129362</link>
      <description>Dear Tom, thanks for your suggestion&lt;BR /&gt;</description>
      <pubDate>Tue, 04 Sep 2018 15:46:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/replace-with-0/m-p/492345#M129362</guid>
      <dc:creator>France</dc:creator>
      <dc:date>2018-09-04T15:46:55Z</dc:date>
    </item>
  </channel>
</rss>

