If CCLSD is numeric, you don't need quotation marks around the literal to which it's compared. CHGVAR VAR(&QRYSLT) + VALUE( ... '*AND CCLSD *EQ' + || "E || &SYSDTE || "E) So get rid of the "E's. It should be '*AND CCLSD *EQ |> &SYSDATE' I don't know if that's the whole problem or not. It's the only thing I see that looks funny.

Reply With Quote