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





Also if you use an overlay or other fancy stuff, you can do it during the
OVRPRTF prior to the cpyf

Don in DC

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Bradley V. Stone
Sent: Monday, July 30, 2007 11:01 AM
To: Midrange Systems Technical Discussion
Subject: RE: Adding a line to a spool file

Don is correct.. You will need to do an OVRPRTF command to set the
attributes of the spooled file to how you want them, otherwise it will just
use the defaults.

Bradley V. Stone
BVSTools - www.bvstools.com
eRPG SDK - www.erpgsdk.com

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx]On Behalf Of Don
Sent: Monday, July 30, 2007 9:54 AM
To: 'Midrange Systems Technical Discussion'
Subject: RE: Adding a line to a spool file




You should be able to do this with the ovrprtf prior to the cpyf...

Don in DC



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



--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



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.