Hi!

I want to add a line at the beginning of an existing spool file. Here's the
steps of what I've tried:

1) Create a work file with a data length = spool length + 1
2) CPYSPLF of my spool file to my work file with *FCFC
3) run a program that adds my new line at the beginning of the work file
4) OVRPRTF of my resulting work file to a QSYSPRT file
5) CPYF of my work file to QSYSPRT

This works fine except for one thing: my new spool file does not have the
same attributes that my original spool file (CPI, LPI, etc...)

Is there any way to create an empty spool file with the same attributes that
my first spool file and then add data to this spool file?

I saw examples of doing that with user spaces... But is there anything more
simple than using User Space to solve my problem?

Charles




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.