How to convert a given date value into SAS date
Answer Posted / sheetal
data temp;
date='17/12/2009';
m=substr(date,4,2);
d=substr(date,1,2);
y=substr(date,7,4);
d1=mdy(m,d,y);
format d1 mmddyy10.;
run;
| Is This Answer Correct ? | 5 Yes | 5 No |
Post New Answer View All Answers
how to read the variables in sas? : Sas-administrator
What sas features do you use to check errors and data validation?
Which command is used to save logs in the external file?
What is the order of application for output data set options, input data set options and SAS statements?
What is the difference between proportion and average?
In SAS explain which statement does not perform automatic conversions in comparisons?
What is the differnce between SDTM 3.1.2 to 3.1.1 version
Describe a time when you were really stuck on a problem and how you solved it?
do you need to know if there are any missing values? : Sas programming
Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?
How are numeric and character missing values represented internally?
what is the basic structure sas administrator? : Sas-administrator
what is the use of proc contents and proc print in sas? : Sas-administrator
What is the difference between class statement and by statement in proc means?
How to limit decimal places for the variable using proc means?