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 / alok karan

proc format ;
invalue newinformat 13="13oct2011"d 14="14oct2011"d 15="15oct2011"d;
run;
data ii;
input id date:newinformat.;
datalines;
1  13         
2  14        
3  15
;
run;
proc print data=ii;
format date date9.;
run;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you explain the process of calendar?

647


what is sas enterprise intelligence architecture? : Sas-bi

548


Did you used proc test? when?

1578


What are the scrubbing procedures in sas?

581


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

764






How would you identify a macro variable? : sas-macro

537


What was the last computer book you purchased? Why?

1918


To what type of programms have you used scratch macros?

2150


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

621


how does sas handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, procs? : Sas programming

607


What is interleaving in SAS?

679


Mention few capabilities of sas framework.

696


What is Linear Regression?

689


how to change the execute of macro

1684


Describe the function and utility of the most difficult SAS macro that you have written?

2032