|
(Wayne, thanks for your suggestion, but: I need to respect
> the original format and am afraid the CPYSPLF > method does not allow this)Sure it does, if you do a little more work. You need to create another file; this one containing spooled file attributes. Then use the spooled file APIs and retrieve the spooled file attributes and store them in the attribute file. Then CPYSPLF to a PF. Now you can move those two files over to the other system and do the reverse:
Read a record from the attributes file, create the appropriate OVRPRTF and then CPYF from the spooled PF to QSYSPRT.
Be advised that when you have done all this, you _still_ have a different job, user and ID than the spooled file on the original system had. If the user ID or job name matters you can submit the job with the proper name and user ID, but I know of no way to force the job number to match the original.
--buck
As an Amazon Associate we earn from qualifying purchases.
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.