I'm getting a run time error when OPNQRY is executed. APGLDT field is numeric and & POST is *CHAR value retrieved from dtaara. Similar is the case with APINVDT. I tried without %DIGITS also and it still doesn't work. OPNQRYF FILE((*LIBL/APH *FIRST *ONLY)) + QRYSLT('%DIGITS(APGLDT) *EQ "' *CAT...