jeudi 28 mai 2015

SAS Code IF statement with day of the week logic

I have a large set of SAS code that is run daily. I have been tasked with adding additional code to the file but have it only run on Mondays.

I have googled for some general IF logic but not finding anything concrete.

I think the IF statement should look like this:

If WEEKDAY(TODAY()) = 1

Does this look correct to check if current day is Monday? Also, what are the equivalent of an open and close brace in SAS?

Aucun commentaire:

Enregistrer un commentaire