How to convert a given date value into SAS date

Answer Posted / vipin choudhary

We can read the date value with the help of date informats.
Say we have the date 09/13/2008.
Now if we want SAS to read this date, we will use the date
informat in the input statement like
"input date mmddyy10."
SAS will store this date in the numerical form as the
number of days passed from 1st january, 1960.

Is This Answer Correct ?    12 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What can be the size of largest dataset in SAS?

720


Can you execute a macro within a macro? Describe. : sas-macro

676


What is the general format of function in sas? : sas-grid-administration

573


What Proc glm does?

610


I have a dataset concat having variable a b & c. How to rename a b to e & f?

583






What are pdv and it functions?

605


what is sas database server? : Sas-di

619


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

1777


What is the basic structure of the SAS base program?

691


How to limit decimal places for variable using proc means?

592


How substr function works in sas?

703


What are the data types does SAS contain?

655


How to create list output for cross-tabulations in proc freq?

624


Mention some common errors that are usually committed in sas programming.

591


How to convert a numeric variable to a character variable?

634