Name and describe three SAS functions that you have used, if
any?
Answers were Sorted based on User's Feedback
Answer / lavanya rapole
the three sas fuctions that i have used are
character function
numeric function and
date function
| Is This Answer Correct ? | 0 Yes | 0 No |
why is sas data integration studio important? : Sas-di
Did you used proc test? when?
0 Answers Accenture, Quintiles,
what is the difference between proc means and proc tabulate?
Give some examples where proc report’s defaults are different than proc print’s defaults?
What is the one statement to set the criteria of data that can be coded in any step?
What are the ways in which macro variables can be created in sas programming?
How experienced are you with customized reporting and use of Data _Null_ features?
data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.
/* 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;
how to generate report for 0 observation dataset?
Describe the ways in which you can create macro variables?
if reading an external file to produce an external file, what is the shortcut to write that record without coding every single variable on the record