Hi, im looking for the best way to run a query through only using the command line in our iseries, without using the wrkqry command.
I tried to use the STRQMQRY command;
STRQMQRY QMQRY(MYLIB/QUERY) OUTPUT(*OUTFILE) OUTFILE(*CURLIB/TEMP)
but this didnt work for some reason..
While feeling a bit stupid I realised that i could use the runqry command(I usally use it for running querys against files and never against stored querys...)
RUNQRY QRY(MYLIB/QUERY)
which seemed to work fine.
So my question is, is there some other/better way to do it? And any noticable reason that the STRQMQRY command would fail?
Thanks for a very interesting forum.
I tried to use the STRQMQRY command;
STRQMQRY QMQRY(MYLIB/QUERY) OUTPUT(*OUTFILE) OUTFILE(*CURLIB/TEMP)
but this didnt work for some reason..
While feeling a bit stupid I realised that i could use the runqry command(I usally use it for running querys against files and never against stored querys...)
RUNQRY QRY(MYLIB/QUERY)
which seemed to work fine.
So my question is, is there some other/better way to do it? And any noticable reason that the STRQMQRY command would fail?
Thanks for a very interesting forum.
Comment