Reputation: 1
I want to go back 6mo from existing date and tried tbis but gives me the additional column NewDate with no values.
DATA temp;
SET Have -- existing table
NewDate: Intx('Month',Date, -6)
run;
Upvotes: 0
Views: 648
Reputation: 21264
Here's a video tutorial on the general concepts about creating a new variable.
data class;
set sashelp.class;
New_Date = intnx('month', date(), 6, 's');
run;
Upvotes: 1