DATA Step, Macro, Functions and more

Please let me know value/outcome

Reply
Contributor
Posts: 40

Please let me know value/outcome

Please confirm on the output of below function -

covdate = input(hire_date,yymmdd10.) + 360

if hire_date is 20010901. Will this output sas date ?

thanks,

latha

Regular Contributor
Posts: 241

Re: Please let me know value/outcome

covdate = input(hire_date,yymmdd10.) + 360

if hire_date is 20010901. Will this output sas date ?

Yes

Super User
Posts: 17,840

Please let me know value/outcome

Why not try it?

data test;

     hire_date='20090901';

     cov_date=input(hire_date, yymmdd10.)+360;
     format cov_date date9.;

run;

proc print;

run;

Output from sas window.

Obs date cov_date

1 20090901 27AUG2010

Ask a Question
Discussion stats
  • 2 replies
  • 126 views
  • 0 likes
  • 3 in conversation