Hi, I have one dataset like
id date ex: id date
1 13 1 13Oct2011
2 14 2 14Oct2011
3 15 3 15Oct2011 --->this is the current date
here i want date format like 13Oct2011,14Oct2011 how we can
modify the numeric to date format plz answer.

Answer Posted / ramesh

data inter3;
input id 1-2 dat ;
cards;
1 13
2 14
3 15
;
run;

data inter4;
set inter3;
format dat1 date9.;
dat1=dat;
run;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you control the number of observations and/or variables read or written? Approximately what date is represented by the SAS date value of 730?

1171


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

764


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

808


What are the default statistics for means procedure?

650


Which are the statements whose placement in the data step is critical?

764






How will you generate test data with no input data?

568


Give an example where SAS fails to convert character value to numeric value automatically?

610


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

515


hi tell be about pfizer? how to compare the work with other companies ? please tell me how to login and work also?

1667


Differences between where and if statement?

586


what is data integration? : Sas-di

620


what is ae onset date n what is RDS

1941


explain the difference between proc means and proc summary?

675


Mention what is SAS data set?

679


How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?

754