I have not seen it done. We get around a situation like this by using the OPNQRYF command. get date as a system variable and use that.
Similar to this.
OPNQRYF FILE((AFP)) FORMAT(*LIBL/AFP01) +
QRYSLT(‘(AFDATE *GE ‘ || &DTYMD ||
*AND AFDATE *LE ‘ || &DT2YMD || ‘)