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]

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 1249 views
  • 0 likes
  • 3 in conversation