How to convert a given date value into SAS date
Answer Posted / arish kumar
e.g the date is '05/09/2007'
we can use the input function to convert this string into SAS date i.e.
date='05/09/2007'
sasdate=input(date,mmddyy10.);
Also, we can use mdy function.For this first use substr function.
m=substr(date,4,2);
d=substr(date,1,2);
y=substr(date,7,4);
sasdate=mdy(m,d,y);
| Is This Answer Correct ? | 21 Yes | 3 No |
Post New Answer View All Answers
How can you create a macro variable with in data step? : sas-macro
hi tell be about pfizer? how to compare the work with other companies ? please tell me how to login and work also?
What does the trace option do?
Hello Friends, am new to this forum and am not good at sas progarmming. please can any one of you send me couple of sample large sample SAS Jobs which can you use 200 MB of data and other sas job upto 25GB of data. am doing a performance testing on our legacy systems and new upgraded system. I would really appreciate if you can do me this favor Thank you Priya
List out some key concept of SAS
Where do you use proc means over proc freq?
Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?
What sas features do you use to check errors and data validation?
Mention sas system options to debug sas macros.
How would you identify a macro variable?
Name types of category in which SAS Informats are placed?
I have a dataset concat having variable a b & c. How to rename a b to e & f?
for whom is sas data integration studio designed? : Sas-di
Hi Jeevan/Akshara I have tried to contact SASI Vats for latest Advanced SAS Programming Certification Dumps (A00-212) but have not got any response. I would highly and gratefully appreciate your assistance in this regard. If you guys have access to this, would you be kind enough to forward it to me ? I would abide by all the terms you have for this. Please, note my email id: upretigopi@yahoo.com Preti Sharma
explain the proc in sas? : Sas-administrator