Question

  Asked: Feb 19 2008   5:35 PM GMT
  Asked by: Lnspgm


qmqry outfile


QMQRY OUTFILE, QMQRY, AS/400

I have a qmqry that we have had running in production for awhile with no problem. It is called from a cl. We create one workfile and then the second works with this file and joins to another creating a outfile in qtemp which we e-mail to user.

This is the type of error we are getting now.
> STRQMQRY QMQRY(CONNIE/PRJ8917) OUTPUT(*OUTFILE) OUTFILE(QTEMP/PRJ8917)
Select or omit error on field ���������� member PRJ8917.
Select or omit error on field *N member PRJ8917.
Select/omit error on member PRJ8917.
Data conversion or data mapping error.
RUN QUERY command failed with SQLCODE -802.
RUN QUERY command ended due to error.
STRQMQRY command failed.
> However if I run the same qmqry with output(*) it works?*
> STRQMQRY QMQRY(CONNIE/PRJ8917) OUTPUT(*)

Any ideas what I might try to correct?

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


Start this Answer and Earn your Knowledge Points!

By clicking "Create Answer", you can write the answer to this question that can be improved upon by your peers using the Answer Wiki.

Browse more Questions and Answers on AS/400.

Looking for relevant AS/400 Whitepapers? Visit the Search400.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register