如何在任何列表中设置今天的宏观条件
我想将代码设置为每月 5,11,16,22,28 天运行,但它不起作用。
%if %sysfunc(day(%sysfunc(today()))) in (5,11,16,22,28) %then %do
我该如何修复它?非常感谢。
I wanna set the code run at days: 5,11,16,22,28 monthly but it doesn't work.
%if %sysfunc(day(%sysfunc(today()))) in (5,11,16,22,28) %then %do
How can I fix it? Thanks much.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
IN
运算符在 SAS 9.2 宏中工作,但您需要定义系统选项。必须打开MINOPERATOR
(Macro-In-Operator),并且在您的情况下,还必须指定MINDELILITER
,因为您使用的是逗号分隔值。更多信息请参阅让 IN 运算符在 SAS® 宏中运行< /a>
请注意上面示例中的
-1
来复制 3 月 22 日。The
IN
operator works in a SAS 9.2 Macro but you need to define system options. TheMINOPERATOR
(Macro-In-Operator) must be turned on and in your case, theMINDELILITER
too must be specified as you are using comma delimited values.More information can be found in Getting the IN operator to FUNCTION inside a SAS® Macro
Notice the
-1
in the above example to replicate March 22.