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.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.
Ready to level-up your skills? Choose your own adventure.