QMQRY Questions and Answers

Recent IT Questions

1 - 6 of 6
<<PREVIOUS 1 NEXT>>

not a valid Query Management variable.

Hi, can someone please help me, I am trying to use the QMQRY function to run an update statement. I pass it a variable from the program. Get the following error. is not a valid Query Management variable. Error found on STRQMQRY command. Function check. CPF0001 unmonitored by PGMFCTSEC at statement...

View Answer   |  Oct 1 2009  11:32 AM GMT
QMQRY, CL programming, CL variables
asked by Pmh

  5 pts.

Display "No records found" in a QMQRY

I have a QMQRY that selects data from several files using left joins. Based on my "where" clause there is a possibility that no records will be selected. In this case, I want to be able to print "NO RECORDS FOUND" on the report. I have not been able to figure out how to get that text to print on...

View Answer   |  Apr 8 2009  1:38 PM GMT
QMQRY, AS/400 error messages, AS/400 printing
asked by Curly

  5 pts.

QMQRY not a valid Query Management variable.

Hi there, 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) ...

View Answer   |  Feb 19 2009  7:12 AM GMT
QMQRY, CL programming, CL variables
asked by NormFeile

  25 pts.

Problem in CCSID converting

I have a QM query that forms up a DB file. A physical file. A file that afterwards will be tranferred to the excel worksheet. All the source DB files (as well as all the records inside) that I use in the QM query are having the CCSID=297 (french). But the data itself stored in these DB files...

View Answer   |  Jan 19 2009  5:09 AM GMT
AS/400, CCSID, locale
asked by Proturborandza

  25 pts.

qmqry error - Help!

Can anyone help? I have a clp application that calls a qmqry which reads a large sales transaction file and selects and creats a small summary file of certain transactions for a certain typpe of part and date range. This sales transaction file is journaled and the file it creates becomes...

View Answer   |  Feb 22 2008  4:20 PM GMT
SQL, AS/400 journaling, QMQRY
asked by Lnspgm

  15 pts.

qmqry outfile

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. >...

View Answer   |  Feb 19 2008  5:35 PM GMT
AS/400, QMQRY OUTFILE, QMQRY
asked by Lnspgm

  15 pts.

1 - 6 of 6
<<PREVIOUS 1 NEXT>>