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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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