|
Per this doc
https://www.ibm.com/support/pages/finding-and-working-spooled-files-generated-under-qprtjob-job
You can use the
Retrieve Identity of Last Spooled File Created (QSPRILSP) API
HTH,
Charles
On Fri, Oct 10, 2025 at 2:16 PM David Gibbs via MIDRANGE-L <
midrange-l@xxxxxxxxxxxxxxxxxx> wrote:
Folks:
Anyone know if there is a way to copy a spool file created in a job after
using the QWTSETP api to do a user profile handle switch?
I've got a program that does a WRKACTJOB to a spool file and then analyzes
the contents.
However, the spool file is being generated in a job named QPRTJOB instead
of the current job ... so the CPYSPLF command can't find the file.
I'm wondering if there is a command parameter I can use to tell CPYSPLF to
copy the correct spool file.
Of course, the best solution would to not use WRKACTJOB & CPYSPLF and use
the ACTIVE_JOB_INFO table function to get the job information, but that's a
lot more work.
Thanks!
david
--
IBM i on Power Systems: For when you can't afford to be out of business!
I'm riding in the American Diabetes Association's Tour de Cure to raise
money for diabetes research, education, advocacy, and awareness. You can
make a tax-deductible donation to my ride by visiting
https://mideml.diabetessucks.net.
I may have diabetes, but diabetes doesn't have me!
--
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-2025 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.