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
Can you execute a macro within a macro? Describe. : sas-macro
what is factor analysis? : Sas-administrator
How to create list output for cross-tabulations in proc freq?
What do the mod and int function do? : Sas programming
What are the applications primarily used by business analyst? : Sas-bi
what is sas business intelligence? : Sas-bi
Name and describe few sas character functions that are used for data cleaning in brief.
how will you location sas platform applications available from web browser? : Sas-bi
What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?
What are the difference between sas functions and procedures?
I need level 2 to 5 sas using companies in india
Explain proc univariate?
What does the RUN statement do?
What are the statements that are executed only?
What is the role of sas grid administrator? : sas-grid-administration