/ Published in: SAS
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
proc fcmp outlib=sasuser.funcs.trial;
Note about code
function study_day(intervention_date, event_date);
Note about code
if event_date < intervention_date then
return(event_date - intervention_date);
else
return(event_date - intervention_date + 1);
endsub;
Note about code
options cmplib=sasuser.funcs.trial;
Note about code
data _null_;
start = '15Feb2006'd;
today = '27Mar2006'd;
sd = study_day(start, today);
Note about code
put sd=;
Note about code
run;
URL: http://support.sas.com/documentation/cdl/en/proc/59565/HTML/default/a003181727.htm
Comments
 Subscribe to comments
                    Subscribe to comments
                
                