Can any1 please help me . I have to calculate field of coupon issuance date .expiry date of coupon is 3 months . But in my data sets i am only having expiry date . Is this the correct way to solve such que
data _class_1;
coupon_issuance_date=intnx('02',20,-3,'b');
proc print data = _class_1 noobs;
run;
already done it sir .
And did you get the result you expected?
@mehak wrote:
Can any1 please help me . I have to calculate field of coupon issuance date .expiry date of coupon is 3 months . But in my data sets i am only having expiry date . Is this the correct way to solve such que
data _class_1;
coupon_issuance_date=intnx('02',20,-3,'b');
proc print data = _class_1 noobs;
run;
No. Review how the INTNX() documentation, there are examples at the bottom of the page.
Specifically:
INTNX(interval <multiple><.shift-index>,
<, 'alignment'>)
Compare the parameters above to yours.
The examples are towards the bottom of the page.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.