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.

Answers were Sorted based on User's Feedback



Hi, I have one dataset like id date ex: id date 1 13 1 13Oct2011 2 14 ..

Answer / 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

Hi, I have one dataset like id date ex: id date 1 13 1 13Oct2011 2 14 ..

Answer / naveen

proc sql;
select *
from qqq
format date date9.;
quit;

Is This Answer Correct ?    0 Yes 0 No

Hi, I have one dataset like id date ex: id date 1 13 1 13Oct2011 2 14 ..

Answer / 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

Hi, I have one dataset like id date ex: id date 1 13 1 13Oct2011 2 14 ..

Answer / kiran

data dsn;
input id date;
format date date9.;
cards;
1 13
2 14
3 15
;
run;

Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More SAS Interview Questions

How to limit decimal places for the variable using proc means?

0 Answers  


How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?

0 Answers   Accenture,


What are some problems you might encounter in processing missing values? In Data steps? Arithmetic? Comparisons? Functions? Classifying data?

1 Answers   Quintiles,


What is the SAS data set?

0 Answers  


Mention the category in which sas informats are placed?

0 Answers  






what is business intelligence? : Sas-bi

0 Answers  


How to read multiple excel sheets from a single excel file at once????

7 Answers   HCL, Verinon Technology Solutions,


How to display duplicate observations in data?

1 Answers  


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

0 Answers  


what are system option ? give few examples ? what are dataset options and dataset statements ? if there is a keep option and keep statement ? which one is executed first ? Difference between a WHERE statement and IF statement ? what is the advantage of using WHERE statement option on the dataset ?

1 Answers   Satyam,


what is broad cast agent? : Sas-bi

0 Answers  


what is the diff b/w verification validation in sas

3 Answers   SAS,


Categories