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.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.