qmqry error – Help!

15 pts.
Tags:
AS/400 journaling
QMQRY
SQL
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 journaled? This part works fine. The second part of the clp takes this summary workfile and joins to our actual payment records and creates another workfile of any items in the workfile that are not paid and ages how deliquient they are. We put these records in a workfile in qtemp and e-mail the user. This part is not working anymore. It gets a error on select-omit record 0. I can run this qmqry manually with output on screen so it is not the actually qmqry(I believe) Would the journalling have anything to do with it? Or does anybody have any idea which area I should explore?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi,

I would start by checking if you have commitment control active – maybe you need to do a commit after your QMQRY.

Regards,

Martin Gilbert.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    This sales transaction file is journaled and the file it creates becomes journaled? Was that intended to indicate a question or was the question mark unintentional? If it was a question, the answer is "No." That is, the journal attribute of the transaction file has no relationship to the journal attribute of the resulting workfile. (There are ways that your environment might cause the workfile to be journaled.) The second part of the clp takes this summary workfile and joins to our actual payment records and creates another workfile of any items in the workfile that are not paid and ages how deliquient they are. We put these records in a workfile in qtemp and e-mail the user. This part is not working anymore. It gets a error on select-omit record 0. Which part isn't working? The joins to our actual payment records part? Or the creates another workfile part? Or the put these records in a workfile in qtemp part? Or the e-mail the user part? What error message ID shows up? On what CL statement does the error message happen? Are there any other suspicious (or obvious) messages earlier in the same joblog? Your question begins with I have a clp application and the immediately mentions calls a qmqry. A little later, your question describes a second query function -- takes this summary workfile and joins to our actual payment records and creates another workfile. It continues eventually with I can run this qmqry manually.... Are there multiple *QMQRYs involved? If not, how is the second "join" performed? Which *QMQRY are you referring to when you say I can run this qmqry manually...? (And if the second query function isn't a *QMQRY, what is it? You might have solved the problem by now. Coming back to the question to explain what the problem turned out to be and how it was resolved would help others in similar circumstances. Future questions might include more detail to help focus on a resolution. Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following