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?
Software/Hardware used:
ASKED:
February 22, 2008 4:20 PM
UPDATED:
April 7, 2010 12:51 AM
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