hi i date is 05sep2005; i want the oupput like

05sep2005:00:00:00 ; how it wil come?

Answer Posted / shakeer

data dt;
informat d date9.;
d= '05sep2005'd;
dt=dhms(d,0,0,0);
format dt datetime21.;
proc print;run;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the use of proc gplot? : sas-grid-administration

556


what is ae onset date n what is RDS

1939


what do you mean by data staging area? : Sas-di

605


How to import multiple xls files into sas. Out of those files, how to get different values from a single variable and how to find number of rows per value type? We can do this using group by for one xls file with proc sql. Was wondering how I can achieve this for multiple files at the same time. Any ideas?

2385


how to debug and test the sas program? : Sas-administrator

572






What is the role of administrative users? : sas-grid-administration

660


Give some ways by which you can define the variables to produce the summary report (using proc report)?

600


name the scheduler for scheduling job and explain the scheduler? : Sas-di

594


What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?

2008


Explain what is the use of proc gplot?

702


What is the difference between proportion and average?

2758


what is change analysis in sas di ? : Sas-di

606


How sas treats the dsd delimiters?

724


What was the last computer book you purchased? Why?

1916


How do you convert basic cube to transaction cube and transaction cube to basic cube?

1774