<?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 To Replace Missing Values In SaS ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/595518#M171336</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;:&lt;/P&gt;
&lt;P&gt;Methinks you've misunderstood me. I meant that it would be nice if proc STDIZE allowed to set some specified variables to one value and some other specified variables - to a different value, all in a single pass through the input data.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Oct 2019 17:37:06 GMT</pubDate>
    <dc:creator>hashman</dc:creator>
    <dc:date>2019-10-10T17:37:06Z</dc:date>
    <item>
      <title>How To Replace Missing Values In SaS ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/594821#M170994</link>
      <description>&lt;P&gt;Hello Everyone , I have This Table :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="320"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;User_ID&lt;/TD&gt;
&lt;TD width="64"&gt;Max_Item&lt;/TD&gt;
&lt;TD width="64"&gt;Tot_Item&lt;/TD&gt;
&lt;TD width="64"&gt;Max_Days&lt;/TD&gt;
&lt;TD width="64"&gt;Min_Days&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1452&lt;/TD&gt;
&lt;TD&gt;12&lt;/TD&gt;
&lt;TD&gt;20&lt;/TD&gt;
&lt;TD&gt;50&lt;/TD&gt;
&lt;TD&gt;10&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1460&lt;/TD&gt;
&lt;TD&gt;,&lt;/TD&gt;
&lt;TD&gt;,&lt;/TD&gt;
&lt;TD&gt;20&lt;/TD&gt;
&lt;TD&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1465&lt;/TD&gt;
&lt;TD&gt;10&lt;/TD&gt;
&lt;TD&gt;12&lt;/TD&gt;
&lt;TD&gt;,&lt;/TD&gt;
&lt;TD&gt;,&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1470&lt;/TD&gt;
&lt;TD&gt;,&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;,&lt;/TD&gt;
&lt;TD&gt;,&lt;/TD&gt;
&lt;TD&gt;,&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And What I want To do is , whenever it founds a Missing in Max_Items it will replace it with 1 , whenever it founds a Missing in Tot_Items it will replace it with 1 and whenever it founds a Missing in Max_Days it Will replace it with 0 ,&amp;nbsp;whenever it founds a Missing in Min_Days it Will replace it with 0.&lt;/P&gt;
&lt;P&gt;Any Help Would Be Much Appreciated , Thank U.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 17:08:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/594821#M170994</guid>
      <dc:creator>Midi</dc:creator>
      <dc:date>2019-10-08T17:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: How To Replace Missing Values In SaS ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/594824#M170995</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input User_ID	Max_Item	Tot_Item	Max_Days	Min_Days;
cards;
1452	12	20	50	10
1460	.	.	20	5
1465	10	12	.	.
1470	. 	.	.	.
;

data want;
set have;
Max_Item=coalesce(Max_Item,1);
Tot_Item=coalesce(Tot_Item,1);
Max_Days=coalesce(Max_Days,0);
Min_Days=coalesce(Min_Days,0);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Oct 2019 17:14:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/594824#M170995</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-10-08T17:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: How To Replace Missing Values In SaS ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/594825#M170996</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may can also use array concept, like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have;

array change_1{3} var1 var2 var3;
array change_0{2} var4 var5;

do over change_1;
if change_1=',' then change_1='1';
end;

do over change_0;
if change_0=',' then change_0='0';
end;

run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Oct 2019 17:24:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/594825#M170996</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2019-10-08T17:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: How To Replace Missing Values In SaS ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/594897#M171041</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/282666"&gt;@Midi&lt;/a&gt;:&lt;/P&gt;
&lt;P&gt;Since all your variables in question are numeric, you need but a single array:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have ;                                                                                                                                                                                                                                                     
  input user_id max_item tot_item max_days min_days ;                                                                                                                                                                                                           
  cards ;                                                                                                                                                                                                                                                       
1452  12  20  50  10                                                                                                                                                                                                                                            
1460   .  .   20   5                                                                                                                                                                                                                                            
1465  10  12   .   .                                                                                                                                                                                                                                            
1470   .   .   .   .                                                                                                                                                                                                                                            
;                                                                                                                                                                                                                                                               
run ;                                                                                                                                                                                                                                                           
                                                                                                                                                                                                                                                                
data want ;                                                                                                                                                                                                                                                     
  set have ;                                                                                                                                                                                                                                                    
  array vv max_item--min_days ;                                                                                                                                                                                                                                 
  do over vv ;                                                                                                                                                                                                                                                  
    if nmiss (vv) then vv = _i_ &amp;lt; 3 ;                                                                                                                                                                                                                           
  end ;                                                                                                                                                                                                                                                         
run ;             
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Kind regards&lt;/P&gt;
&lt;P&gt;Paul D.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 21:10:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/594897#M171041</guid>
      <dc:creator>hashman</dc:creator>
      <dc:date>2019-10-08T21:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: How To Replace Missing Values In SaS ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/595023#M171102</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have ;                                                                                                                                                                                                                                                     
  input user_id max_item tot_item max_days min_days ;                                                                                                                                                                                                           
  cards ;                                                                                                                                                                                                                                                       
1452  12  20  50  10                                                                                                                                                                                                                                            
1460   .  .   20   5                                                                                                                                                                                                                                            
1465  10  12   .   .                                                                                                                                                                                                                                            
1470   .   .   .   .                                                                                                                                                                                                                                            
;                                                                                                                                                                                                                                                               
run ;   
proc stdize data=have out=temp missing=1 reponly;
var  max_item tot_item;
run;
proc stdize data=temp out=want missing=0 reponly;
var  max_days min_days;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Oct 2019 12:33:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/595023#M171102</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-10-09T12:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: How To Replace Missing Values In SaS ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/595223#M171193</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would be nice if that could be done in one pass, wouldn't it? &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 00:47:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/595223#M171193</guid>
      <dc:creator>hashman</dc:creator>
      <dc:date>2019-10-10T00:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: How To Replace Missing Values In SaS ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/595326#M171238</link>
      <description>&lt;P&gt;No. I don't think so. Make it done in one pass/data step ,would make you to generate more error .&lt;/P&gt;
&lt;P&gt;My first option is make code more readable and robust (you need make sure your result is right, in one data step often suffer more error/ or risk and more important is not readable which make code hard maintenance ),and last option is in one data step .&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 11:16:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/595326#M171238</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-10-10T11:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: How To Replace Missing Values In SaS ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/595518#M171336</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;:&lt;/P&gt;
&lt;P&gt;Methinks you've misunderstood me. I meant that it would be nice if proc STDIZE allowed to set some specified variables to one value and some other specified variables - to a different value, all in a single pass through the input data.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 17:37:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/595518#M171336</guid>
      <dc:creator>hashman</dc:creator>
      <dc:date>2019-10-10T17:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: How To Replace Missing Values In SaS ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/595523#M171338</link>
      <description>&lt;P&gt;Can you figure out how to get CALL STDIZE() function to do solve this?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I cannot get it to work, but it looks like it should be able to do it.&amp;nbsp; The documentation is very short on examples.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 18:06:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/595523#M171338</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-10T18:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: How To Replace Missing Values In SaS ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/595526#M171340</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As it was&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;who ideated using CALL STDIZE for this kind of purpose in the first place and hence must be quite well versed on the subject, maybe the original inventor will chime in with something&amp;nbsp; instructive upon seeing the reference I included in this sentence.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards&lt;/P&gt;
&lt;P&gt;Paul D.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 18:15:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/595526#M171340</guid>
      <dc:creator>hashman</dc:creator>
      <dc:date>2019-10-10T18:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: How To Replace Missing Values In SaS ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/595528#M171341</link>
      <description>&lt;P&gt;I found example from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15410"&gt;@data_null__&lt;/a&gt;&amp;nbsp;in another topic on this forum.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Data-Management/Assign-value-to-list-of-variables-similar-to-call-missing/td-p/187662" target="_blank"&gt;https://communities.sas.com/t5/SAS-Data-Management/Assign-value-to-list-of-variables-similar-to-call-missing/td-p/187662&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want ;
 set have ;
 call stdize('none','missing=',1,max_item,tot_item);
 call stdize('none','missing=',0,max_days,min_days);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Oct 2019 18:22:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/595528#M171341</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-10T18:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: How To Replace Missing Values In SaS ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/595530#M171343</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;:&lt;/P&gt;
&lt;P&gt;Thanks for digging it up. When it comes to SAS,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15410"&gt;@data_null__&lt;/a&gt;&amp;nbsp;is a veritable horn of plenty.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 18:27:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/595530#M171343</guid>
      <dc:creator>hashman</dc:creator>
      <dc:date>2019-10-10T18:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: How To Replace Missing Values In SaS ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/595531#M171344</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/21262"&gt;@hashman&lt;/a&gt; I was thinking that perhaps one could use METHOD=IN(dataset) to somehow communicate a different replacement value for missing values.&amp;nbsp; I do now know how it all works but maybe something you might want to try. &amp;nbsp;&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/21262"&gt;@hashman&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;:&lt;/P&gt;
&lt;P&gt;Methinks you've misunderstood me. I meant that it would be nice if proc STDIZE allowed to set some specified variables to one value and some other specified variables - to a different value, all in a single pass through the input data.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 18:35:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/595531#M171344</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2019-10-10T18:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: How To Replace Missing Values In SaS ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/595532#M171345</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt; as I recall CALL STDIZE will be rather slow.&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/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I found example from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15410"&gt;@data_null__&lt;/a&gt;&amp;nbsp;in another topic on this forum.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Data-Management/Assign-value-to-list-of-variables-similar-to-call-missing/td-p/187662" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Data-Management/Assign-value-to-list-of-variables-similar-to-call-missing/td-p/187662&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want ;
 set have ;
 call stdize('none','missing=',1,max_item,tot_item);
 call stdize('none','missing=',0,max_days,min_days);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 18:39:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/595532#M171345</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2019-10-10T18:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: How To Replace Missing Values In SaS ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/595535#M171347</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/21262"&gt;@hashman&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;:&lt;/P&gt;
&lt;P&gt;Thanks for digging it up. When it comes to SAS,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15410"&gt;@data_null__&lt;/a&gt;&amp;nbsp;is a veritable horn of plenty.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/21262"&gt;@hashman&lt;/a&gt; May I put this on my resume?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 18:47:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/595535#M171347</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2019-10-10T18:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: How To Replace Missing Values In SaS ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/595541#M171349</link>
      <description>&lt;P&gt;You can use the UPDATE statement to accomplish this without too much work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have ;
  input user_id max_item tot_item max_days min_days ;
  cards ;
1452  12  20  50  10
1460   .  .   20   5
1465  10  12   .   .
1470   .   .   .   .
;;;;
   run;
proc print;
   run;
data master / view=master;
   set have(keep=user_id);
   retain max_item tot_item 1 max_days min_days 0;
   run;

data missing2value;
   update master have;
   by user_id;
   run;
proc print;
   run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 384px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33050i6A062E10ABE18597/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 382px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33051i0F94B3D0A7CB3552/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 19:01:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/595541#M171349</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2019-10-10T19:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: How To Replace Missing Values In SaS ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/595542#M171350</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15410"&gt;@data_null__&lt;/a&gt;&amp;nbsp;: By all means, J. But methinks a resume is the last thing you'd need.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 18:55:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/595542#M171350</guid>
      <dc:creator>hashman</dc:creator>
      <dc:date>2019-10-10T18:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: How To Replace Missing Values In SaS ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/595565#M171361</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/21262"&gt;@hashman&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;As it was&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;who ideated using CALL STDIZE for this kind of purpose in the first place and hence must be quite well versed on the subject, maybe the original inventor will chime in with something&amp;nbsp; instructive upon seeing the reference I included in this sentence.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Neither "well versed," I'm afraid, nor "the original inventor" (as shown by data_null__'s much older post). &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In fact, I believe it was &lt;EM&gt;the first and only time&lt;/EM&gt; that I used CALL STDIZE in &lt;A href="https://communities.sas.com/t5/New-SAS-User/Set-All-Array-Values-to-0/m-p/570703#M12011" target="_blank" rel="noopener"&gt;that thread in July&lt;/A&gt;. I had just gone through the list of CALL routines (knowing that some of them can&amp;nbsp;&lt;SPAN&gt;change the values of several variables in a single call) until I found one that did the job.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/282666"&gt;@Midi&lt;/a&gt;'s task the UPDATE statement (as suggested by data_null__) seems more natural to me than a CALL routine which was actually designed for a different purpose.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 20:58:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-To-Replace-Missing-Values-In-SaS/m-p/595565#M171361</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-10-10T20:58:22Z</dc:date>
    </item>
  </channel>
</rss>

