/* 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 5484Post New Emerio SAS Interview Questions
How to implement a multithreaded applet?
Which language is more suitable for text analytics? R or python?
Would you be able to change the block size of hdfs files?
Where is the startup folder in windows 8?
What chemical is used to expand air bags in such a short amount of time?
how to calculate steel for slab or footings?
What is SQL Azure Firewall?
How can we perform data binding in atlas?
What do you mean by data manipulation language?
Why am I getting an invalidoperationexception when I serialize an arraylist?
What will b the dimensions of a sack to pack 50 Kg cement having the volume of 0.048 M3
Can we add elements to final list?
What is the static field modifier?
what is difference between inner join & nested query or subqueries
Can delete statement be rollbacked?