How to convert a given date value into SAS date

Answer Posted / geoffrey brent

If you don't know in advance how the date will be
formatted, you can use the ANYDTDTE. informat. This will
extract a SAS date from most date/date-time formats.
(Warning: ANYDTDTE doesn't fully support day-month-year
ordering, even if you have this set as your system
preference, but it still copes with most DMY-formatted
dates.)

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data?

852


for whom is sas data integration studio designed? : Sas-di

732


What is the different between functions and PROCs that calculate the same simple descriptive statistics?

1514


Explain data_null_?

800


What is the command used to find missing values?

790


What does the trace option do?

866


What are the different types of sas functions?

850


What is the function of output statement in a SAS Program?

799


Describe crosslist option in tables statement?

931


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

2281


what do the mod and int function do? What do the pad and dim functions do? : Sas programming

866


What is maximum number of rows and cols can be handled in SAS?

1063


In sas, what are the areas that you are most interested in? : sas-grid-administration

823


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

2304


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

745