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



Nothing short of retreiving all the existing spool attributes and then
applying them to the new spool file when you recreate it with CPYF.

If you're interested in working with someone to create this
functionality, we could easily add this to our AS/400 report splitter
product since it's a variation of what we already do with the product.

We could add an exit point to our duplicate option that allows you to
call out to your own code.

Please contact me offlist if interested in discussing, otherwise look
for some code to retreive the spool attributes

Regards,
Richard Schoen
RJS Software Systems Inc.
"Get the information you need. Now!"
Email: richard@xxxxxxxxxxxxxxx
Web Site: http://www.rjssoftware.com
Tel: (952) 898-3038
Fax: (952) 898-1781
Toll Free: (888) RJSSOFT

------------------------------

message: 8
date: Mon, 30 Jul 2007 10:30:47 -0400
from: "Charles St-Laurent" <dringpiece@xxxxxxxxxxx>
subject: Adding a line to a spool file

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