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
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!