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

What are the five ways to do a table lookup in sas? : sas-grid-administration

0 Answers  


Name validation tools used in SAS

0 Answers  


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

0 Answers  


What is the role of administrative users? : sas-grid-administration

0 Answers  


How to create a permanent sas data set?

0 Answers  






what is the basic structure sas administrator? : Sas-administrator

0 Answers  


What are the functions done while Compilation...?

1 Answers   TCS,


What are the rows present in protocol Violation table?

2 Answers   Accenture, Quintiles,


How can a SAS WEB REPORT STUDIO USER identify which report tabs they have been permitted without entering the SAS WEB REPORT STUDIO

2 Answers   TCS,


Name statements that are execution only?

7 Answers  


how many data types in sas? : Sas-administrator

1 Answers  


whenever we using the merging through data set merging ,we can get note in log like this "MERGE STATEMENT HAS MORE THAN ONE ONE DATASET BY REPEATED BY VAIABLES" but the output has come in good manner,whenever in in sql(full join) we can get cartion product.so How do overcome this problem in sql?

1 Answers   Accenture,


Categories