× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Fri, Dec 29, 2023 at 12:38 PM Rob Berendt
<robertowenberendt@xxxxxxxxx> wrote:

Robert,
I think you have that backwards. He's starting with a LF, not a PF. I got
tired of trying to attack that JSON BASED_ON_FILES

I don't think it's backwards at all. BASED_ON_FILES is exactly what
Justin was looking for.

As far as "attacking" it (i.e. parsing out what you need from it), it
sounds like you're trying to cram everything into one SQL statement.
It's not that bad if you allow yourself to break up the task into
pieces, especially if you're using a suitable host language (leading
candidates would be Python or Node.js, but RPG would be fine, and I'm
guessing the SQL procedural language too).

For those who've suggested using DSPFD with TYPE(*ACCPTH)
OUTPUT(*OUTFILE), I tried this, and I think you will run into problems
if the logicals you're interested in are joins. As far as I can tell,
TYPE(*MBR) is a more reliable way to get the desired information. This
was the first of Vern's two initial suggestions.

John Y.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.