/* This is example of age caluculate wihtout to display perfect days and years in output window */ data age; retain dob "12jun2003"d now "24may2011"d; age1=now-dob; age=(now-dob)/365.25; years=int(age); days1=round((age-years)*365.25); months=month(now)-1; if days1 gt 30 and months in(12,10,8,6,4,2)then do; month1=days1/30.4375; month=int(days1/30.4375); if day(now)=1 then days=1; else days=round((month1-month)*30.4375)+1; drop days1 month1 month; end; else if days1 gt 30 and months in (1,3,5,7,9,11)then do; month1=days1/30.4375; month=int(days1/30.4375); if day(now)=1 then days=1; else days=round((month1-month) *30.4375); drop days1 month1 month; end; drop age age1; proc print data=age; format dob now date.; run;
1 4225Post New Emerio Interview Questions
How can hyperlink be created using a shortcut key?
How to create the source and target database connections in server manager?
What are types of solutions in CRM 2011?
If you are shifted to a different team, on a different project, will you face difficulties while adapting to a new work format and working with a new team?
How data flows through mm into fi? : co-pa
What is the use of triggers in salesforce?
What are kinds of processors?
What does recovering orphaned file mean?
What is hdfs block size?
How many call outs to external service can be made in a single apex transaction? : salesforce crm
Hi frnds how to lock an user when he enter wrong credentials more than 3 time using java or j2ee tech take username and password in a bean no need to connect DB and validate give me some sample application code or links its urgent for me thanks in advance
What is a web application definition?
What is the difference between if else and switchstatement
give difference between generic & iterative process model.
What is the main purpose of xml?