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 would you identify a macro variable?

650


Of all your work, where have you been the most successful?

4203


Explain the use of proc print and proc contents?

560


what are _numeric_ and _character_ and what do they do? : Sas programming

674


How to specify variables to be processed by the freq procedure?

616






If a variable contains only numbers, can it be a character data type?

612


How to sort in descending order?

794


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

588


for report generation which one you used proc report or data_null_?

6590


I need level 2 to 5 sas using companies in india

1932


What does the trace option do?

666


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

663


How do dates work in sas?

643


What is your favorite all time computer book? Why?

2046


What is the difference between input and infile statement?

684