Mention the difference between ceil and floor functions in sas?
No Answer is Posted For this Question
Be the First to Post Answer
/* 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;
Differentiate between proc means and proc summary.
Why Info School? BUILD YOUR CAREER WITH RIGHT GUIDANCE AND SUPPORT
how would you create a data set with 1 observation and 30 variables from a data set with 30 observations and 1 variable? : Sas programming
Difference between informat and format?
Can you use a macro within another macro? If so how would SAS know where the current acro ended and the new one began?
I use NOCUM/NOPERCENT option in the tables statement like this Proc freq data = deepak; tables x y /nocum nopercent; run; Here I get nopercent and nocum in the output only for variables x and y. How do i do it for all variables? Deepak
In a shcool there are 1000 students. After completion of every test in 6 subjects , each subject teacher submit the marks of every student at different times and loaded in the database commonly. How will you seperate the top two subject marks for each each studet using SAS?
What is the difference between SAS functions and procedures?
how we can create optional or required parameters in SAS macro...
What is the use of PROC gplot?
is it possible to generate sas datasets using proc print ???
1 Answers GSK GlaxoSmithKline,