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


Please Help Members By Posting Answers For Below Questions

what is sas business intelligence? : Sas-bi

773


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

782


How to convert a numeric variable to a character variable?

823


Tell me more about the parameters in macro? : sas-macro

785


Explain what is SAS informats?

810






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

3232


How would you determine the number of missing or nonmissing values in computations?

810


What are the applications primarily used by business analyst? : Sas-bi

728


what is data integration? : Sas-di

814


what can you learn from the sas log when debugging? : Sas programming

796


what is a method for assigning first.var and last.var to the by groupvariable on unsorted data? : Sas programming

737


What is the difference between %local and %global? : sas-macro

834


how does sas handle missing values in formats? : Sas programming

796


how will you location sas platform applications available from web browser? : Sas-bi

770


Which date function advances a date, time or datetime value by a given interval?

838