Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 the difference between nodupkey and nodup options?

1081


explain the proc in sas? : Sas-administrator

1132


How do you control the number of observations and/or variables read or written?

1297


Give some examples where proc report’s defaults are same as proc print’s defaults?

1165


If you could design your ideal job, what would it look like?

2981


Difference between sum function and using “+” operator?

1207


what is the Population you used in your project, is it ITT or PP?

2805


what is sas metadata repository? : Sas-bi

1174


Name and describe few sas character functions that are used for data cleaning in brief.

1182


how to read the variables in sas? : Sas-administrator

1071


How you can read the variables that you need?

1179


How do dates work in sas?

1190


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

1092


what are the best practices to process the large data sets in sas programming? : Sas-administrator

1077


how we can create a FLAG datasets? Ex:-ID age_group no_persons 1 to 10 10 to 20 3 11 to 20 21 to 30 7 21 to 3o 31 to 40 5

2152