SAS Help Documents WEEKDAY Function http://documentation.sas.com/?docsetId=lefunctionsref&docsetTarget=p0ahi8tk3trkv5n173sil9hd7c62.htm&docsetVersion=9.4&locale=en >> My comments Even if I write the WEEKDAY Functions according to SAS Help documents, they still produce the Two Errors. Is SAS Official Document fooling users? A bit weird~~ Can you help me find the reason? Thanks 🙂 /* EX01_test */ /* WEEKDAY Functions according to SAS Help documents */ /* Two Errors */ x=weekday('16mar97'd); put x; Two Errors in SAS Log 62 /* EX01_test */ 63 64 65 x=weekday('16mar97'd); _ 180 ERROR 180-322: Statement is not valid or it is used out of proper order. 66 put x; ___ 180 ERROR 180-322: Statement is not valid or it is used out of proper order.
... View more