here iam trying this code : /* End date Imputations */ data mh; input usubjid $ 1-17 mhendtc $ 19-28; cards; SCL004-14001-9001 SCL004-14001-9002 SCL004-14001-9002 2003 SCL004-14001-9002 SCL004-14001-9003 SCL004-14001-9003 2004 SCL004-14001-9003 SCL004-14001-9004 2006-11 SCL004-14001-9004 SCL004-14001-9004 2010-04 SCL004-14001-9004 SCL004-14001-9004 SCL004-14001-9005 2002 SCL004-14001-9005 SCL004-14001-9006 SCL004-14001-9006 2011-09-17 ; run; data _mh; set mh; format mhed yymmdd10.; enday=input(substr(mhendtc,9,2),best.); enmonth=input(substr(mhendtc,6,2),best.); enyear=input(substr(mhendtc,1,4),best.); if enday ne . and enmonth ne . and enyear ne . then mhed=mdy(enmonth,enday,enyear); else if enday = . and enmonth = . then mhed=mdy(12, 31, enyear); else if enday = . then mhed=intnx('month',mdy(enmonth,01,enyear),0,'E'); else if mhendtc=' ' then mhed=.; run; but iam getting this warning why?: 737 data _mh; 738 set mh; 739 format mhed yymmdd10.; 740 enday=input(substr(mhendtc,9,2),best.); 741 enmonth=input(substr(mhendtc,6,2),best.); 742 enyear=input(substr(mhendtc,1,4),best.); 743 if enday ne . and enmonth ne . and enyear ne . then mhed=mdy(enmonth,enday,enyear); 744 else if enday = . and enmonth = . then mhed=mdy(12, 31, enyear); 745 else if enday = . then mhed=intnx('month',mdy(enmonth,01,enyear),0,'E'); 746 else if mhendtc=' ' then mhed=.; 747 run; NOTE: Missing values were generated as a result of performing an operation on missing values. Each place is given by: (Number of times) at (Line):(Column). 10 at 744:45 NOTE: There were 16 observations read from the data set WORK.MH. NOTE: The data set WORK._MH has 16 observations and 6 variables. NOTE: DATA statement used (Total process time): Kindly give the suitable code pls...kudos in advance
... View more