hi i date is 05sep2005; i want the oupput like
05sep2005:00:00:00 ; how it wil come?
Answer Posted / muthyam reddy
data date1;
Date='05sep2005'd;
DateTime=dhms(Date,0,0,0);
put DateTime datetime21.;
format datetime datetime21. date date9.;
run;
second method;
data asd1;
date='05sep2005';
time='00.00.00';
datetime=date||':'||time;
run;
Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
what is sas business intelligence? : Sas-bi
name the scheduler for scheduling job and explain the scheduler? : Sas-di
How to convert a numeric variable to a character variable?
Tell me more about the parameters in macro? : sas-macro
Explain what is SAS informats?
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
How would you determine the number of missing or nonmissing values in computations?
What are the applications primarily used by business analyst? : Sas-bi
what is data integration? : Sas-di
what can you learn from the sas log when debugging? : Sas programming
what is a method for assigning first.var and last.var to the by groupvariable on unsorted data? : Sas programming
What is the difference between %local and %global? : sas-macro
how does sas handle missing values in formats? : Sas programming
how will you location sas platform applications available from web browser? : Sas-bi
Which date function advances a date, time or datetime value by a given interval?