我有一个问题问你。是否有机会创建类似于此的宏,但在 quera 的 prco sql 中,它总是选择一个月的第一天和最后一天。
%let thismonth=%sysfunc(putn(%sysfunc(today()),yymmn6.));
where t1.DATE = &thismonth
and _dly. between t2.data_from and t2.data_to
and &gv_date_dly. between t3.data_from and t3.data_to
and t3.obj_code not in ('G07','N06','N07')
当函数 & thismonth 被调用时,我们将日期从当月的第一天和 date_to 召回到当月的最后一天