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

Assuming {et} is randomly drawn from N(0,1) and e0 = 0, generate 200 observations of xt = et − 0.5e(t−1) and draw a line graph of xt.

1460


What are the automatic variables for macro? : sas-macro

675


Give e an example of..

1652


How is character variable converted into numeric variable and vice versa?

596


how to generate the test data in sas without input data? : Sas-administrator

578






What is data _null_?

697


How are numeric and character missing values represented internally?

1136


what is data integration? : Sas-di

612


explain the function of substr in sas? : Sas-administrator

556


If you use a symput in a data step, when and where can you use the macro variable? : sas-macro

609


What are common programming errors committed in sas

674


What is the difference between the proc sql and data step?

663


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

569


This entry was posted in General. Bookmark the permalink. Post a comment or leave

4035


What are pdv and it functions?

600