BookmarkSubscribeRSS Feed
Flip
Fluorite | Level 6
Is there a function which would easily give me the SAS date of next Tuesday? I know I can loop through days until Tuesday pops up, but if there is a simple function, I would like to use that instead.

Flip
3 REPLIES 3
Peter_C
Rhodochrosite | Level 12
the function is INTNX
You will need an "adjusted interval", something like Weekday3 (iirc)
The doc are at http://support.sas.com/documentation/cdl/en/lrdict/61724/HTML/default/a003065889.htm .

good luck

PeterC
Flip
Fluorite | Level 6
Thanks. It is exp_date = intnx('week.3', today(), 1);
data_null__
Jade | Level 19
'week.3'

[pre]
data _null_;
do d = today() to today()+14;
t = intnx('week.3',d,1);
put (d t) (+5 weekdate.-r);
end;
run;
[/pre]
What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1323 views
  • 0 likes
  • 3 in conversation