I am trying to pass parameters to QMQRY but get the following error.
CALL PGM(JCCSTREP2) PARM(C165)
'C165' is not a valid Query Management variable.
Error found on STRQMQRY command.
CPF0001 received by JCCSTREP2 at 2800. (C D I R)
the CL pgm that call the query is as follows:
DCL VAR(&JOBX) TYPE(*CHAR) LEN(4)
DCL VAR(&JOBA) TYPE(*CHAR) LEN(6)
CHGVAR VAR(&JOBA) VALUE('''' *CAT &JOBX *CAT +
OVRPRTF FILE(QPQXPRTF) TOFILE(QGPL/JCCSTREP2) +
STRQMQRY QMQRY(JCCSTREP2) OUTPUT(*PRINT) +
QMFORM(*QMQRY) SETVAR(('JOB') (&JOBA))
Can someone help me with the correct syntax...Im goin bananas.Cheers Norm
February 19, 2009 7:12 AM
February 23, 2009 11:23 PM