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



Charles,

If you don't want to spend the time in changing your
program(s) our Report Re-Formatter product will allow you to
add a line of text into your spooled file as well as make
many other types of changes Adding page Breaks, inserting
additional spacing, moving lines up and appending them to
the end of the previous line etc. etc.
Without making any changes to your programs and it will keep
all of the spooled file attributes intact

Contact us offline if you are interested in a free trial

John Allen

DRV Technologies
866.378.3366
www.drvtech.com
************************************************

Automate the delivery of iSeries reports electronically,
without programming to eliminate printing and manual
distribution. SpoolFlex automated commands give users their
reports in the electronic format they require (such as PDF,
Excel and Word), distributed where they need them, without
hardware. Call for a free demonstration.


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of
Charles St-Laurent
Sent: Monday, July 30, 2007 10:31 AM
To: midrange-l@xxxxxxxxxxxx
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 ...

Replies:

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.