SAS Question:
Download Questions PDF

Suppose date is 05sep2005; i want the output like 05sep2005:00:00:00 ; how it will come?

Answer:

data test_date;
input date;
informat date datetime18;
cards;
05sep2005:00:00:00
run;
proc print data=test_date;
format date datetime18.;
run;

Download SAS Interview Questions And Answers PDF

Previous QuestionNext Question
What is option year cuttoff in sas?What is the use of catalog?