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...

How to convert a given date value into SAS date

Answer Posted / arish kumar

e.g the date is '05/09/2007'

we can use the input function to convert this string into SAS date i.e.
date='05/09/2007'
sasdate=input(date,mmddyy10.);

Also, we can use mdy function.For this first use substr function.

m=substr(date,4,2);
d=substr(date,1,2);
y=substr(date,7,4);
sasdate=mdy(m,d,y);

Is This Answer Correct ?    21 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you define the end of a macro? : sas-macro

1094


Explain how merging helps to combine data sets.

1054


if you were told to create many records from one record, show how you would do this using array and with proc transpose? : Sas programming

1064


what is the difference between nodup and nodupkey options? : Sas programming

1192


what are the component of range? : Sas-bi

1100


Hi,by usining ptf how we have to combine (likr merge)10 datasets at a time in the oracle database(and write a macro code also)?Like this i have a douts a lot if you dont mind may please send one text mail for me(madhusudhanap16@gmail.com)?

1683


what are some good sas programming practices for processing very large data sets? : Sas programming

933


What is the difference between order and group variable in proc report?

1436


Difference between sum function and using “+” operator?

1156


what are some differences between proc summary and proc means? : Sas programming

1129


how do the in= variables improve the capability of a merge? : Sas programming

1436


Are you involved in writing the inferential analysis plan? Tables specifications?

3960


Describe a time when you were really stuck on a problem and how you solved it?

2550


Differentiate input and infile.

1105


What are the features of base sas system?

1068