Hi Walt,

> are there any code examples of how to use QUSLSPL, to obtain a file
> handle to the spooled output,
> so I can open it, read the data, and then close the spooled file?

QUSLSPL does not return a file handle to anything, it just gives a list of
spooled files.

It's analogous to opendir/readdir/closedir, except that instead of reading
files in a filesystem, it reads spooled files.  (Which are not stored in
the standard filesystem like they would be in Unix-like operating systems)

> I know how to use the open/close APIs but it's just a matter of finding
> the output files.

Yes, that's what QUSLSPL does...  it lists the spooled files that are
available.

Then you use the "Open Spooled File (QSPOPNSP)", "Get Spooled
File Data (QSPGETSP)"  and "Close Spooled File (QSPCLOSP)" APIs to read
the contents of the spooled file itself.

I'm unclear of which API you want an example of?  In the first paragraph,
you wanted an example of using QUSLSPL to get a file handle, which it does
not do.  In the second example, you state that you already know how to
open/read/close a spooled file, which means you already know how to get a
handle to it?

So what are you looking for?


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-2021 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.