1

How can I add months to a date? I've tried the function ADD_MONTHS(<my date>, 6) and DATEADD(Month, 6, <my date>) but both functions are not recognized.

What's the correct function to use?

1

1 Answer 1

1

I found an answer in sas community: function intnx()

proc sql;
    select *,intnx('month',<my_date>, 6) as incdate format=date9. from have;
quit;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.