1.

What is PAD option and how it is used?

Answer»

 The mdy function creates a numeric date from the VALUES of the month DAY and year.

data date_data;  input name $ month year day;  datalines;  ram 10 1981 13  GEETA 04 1982 20 run; data date_date1;  set date_data;  attrib bdy format=date9.;  bdy=mdy(month,day,year);  run; proc print data= date_date1; run;

Output – 

Obs name  month year   day bdy 1     ram 10      1981 13 13OCT1981 2    geeta  4 1982    20 20APR1982


Discussion

No Comment Found