|
Am 17.04.2026 um 16:39 schrieb Jim Oberholtzer <midrangel@xxxxxxxxxxxxxxxxx>:
SQL sages, (me not)
I’m trying to get a list of journaled objects with object text into a result set.
I can get the list of objects easily:
SELECT OBJECT_LIBRARY FROM QSYS2.JOURNALED_OBJECTS
WHERE JOURNAL_LIBRARY = '#MXJRN' AND
JOURNAL_NAME = 'MISC'
ORDER BY OBJECT_LIBRARY;
I can get the text for each of the objects equally easily.
SELECT OBJNAME, OBJTEXT FROM TABLE (QSYS2.OBJECT_STATISTICS('#MXJRN', '*ALL'));
What I’m having a devel of a time doing is getting the query to show object name, object text.
I know this can be done with a select inside another select, but I’ll be danged I can’t get the code right.
What is the solution?
Jim Oberholtzer
Agile Technology Architects
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.