BookmarkSubscribeRSS Feed
Fred_Gavin
Calcite | Level 5
I want to list all weekdays between 2 years say, 19990101 to 20001231

Any one can help me?

Thanks and Regards
Fred
2 REPLIES 2
Peter_C
Rhodochrosite | Level 12
Monday, Tuesday, Wednesday, Thursday, Friday
it repeats a lot 😉
[pre]
data weekdays;
do date = '1jan1990'd to '31dec2000'd ;
w= weekday( date) ;
if w not in( 1,7) then output ;
end ;
stop;
run ;[/pre] not sure why !


Message was edited by: Peter.C
Fred_Gavin
Calcite | Level 5
Thanks so much
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
  • 2 replies
  • 1012 views
  • 0 likes
  • 2 in conversation