That did the trick. Thank you
Here's what I ended up with:
select L.*
from table(QSYS2.ACTIVE_JOB_INFO(JOB_NAME_FILTER => 'QZDASOINIT')) A
, lateral (
select *
from table(QSYS2.JOBLOG_INFO(A.Job_Name)) X
) L
-----Original Message-----
From: Kevin Bucknum [mailto:Kevin@xxxxxxxxxxxxxxxxxxx]
Sent: Monday, March 30, 2020 9:23 AM
To: midrange-l@xxxxxxxxxxxxxxxxxx
Subject: Re: JOBLOG_INFO for all QZDASOINIT
select a.job_name, b.message_id, b.message_text
from table(qsys2.job_info(
JOB_USER_FILTER => 'QUSER')) a,
lateral (select * from table(qsys2.joblog_info(a.job_name)) x) b
where a.job_name like('%QZDASOINIT%');
On Mon, 2020-03-30 at 14:10 +0000, Justin Taylor wrote:
I'm trying to run JOBLOG_INFO for all QZDASOINIT jobs, but that service doesn't seem to accept wildcards. I can use ACTIVE_JOB_INFO to list the jobs, but I can't figure out how to pipe the results into the JOBLOG_INFO UDTF. I'd rather not process ACTIVE_JOB_INFO via a cursor, run individual JOBLOG_INFO dynamically, and then merge the results.
Any suggestions?
[
https://www.medtronsoftware.com/img/MedtronMinilogo.bmp] Kevin Bucknum
Senior Programmer Analyst
MEDDATA / MEDTRON
120 Innwood Drive
Covington LA 70433
Local: 985-893-2550
Toll Free: 877-893-2550
https://www.medtronsoftware.com
CONFIDENTIALITY NOTICE
This document and any accompanying this email transmission contain confidential information, belonging to the sender that is legally privileged. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from disclosing this information to any other party and is required to destroy the information after its stated need has been fulfilled. If you are not the intended recipient, or the employee of agent responsible to deliver it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or action taken in reliance on the contents of these documents is STRICTLY PROHIBITED. If you have received this email in error, please notify the sender immediately to arrange for return or destruction of these documents.
As an Amazon Associate we earn from qualifying purchases.