Monday, November 9, 2020

Date format

 data ex;

  input startd endd;

  datalnes;

  20180312 20180430

  ;


proc sql;

  select startd, endd, input(put(endd,8.),yymmdd8.) - input(put(startd,8.),yymmdd8.) 

  from ex

  ;quit;

No comments: