@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.
http://documentation.sas.com/?docsetId=lefunctionsref&docsetTarget=p10v3sa3i4kfxfn1sovhi5xzxh8n.htm&docsetVersion=9.4&locale=en
Specifically:
INTNX(interval <multiple><.shift-index>,
start-from,
increment
<, 'alignment'>)
Compare the parameters above to yours.
The examples are towards the bottom of the page.
... View more