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



i have a duplicate spooled file command on my website in the downloads
section http://tommyholden.com

Thanks,
Tommy Holden



From:
Scott Klement <rpg400-l@xxxxxxxxxxxxxxxx>
To:
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
Date:
01/08/2009 03:07 PM
Subject:
Re: 2nd Copy of Report
Sent by:
rpg400-l-bounces@xxxxxxxxxxxx



Hi Jerry,

We have a program that, as it updates a file, prints a report of the
changes it makes. This report prints at the Purchasing agent's desk.
I have a request to print a second copy of the report at our CFO's
desk, as well.

Option 1:
I've used the SNDNETSPLF/SNDTCPSPLF commands for this. Technically
these tools are intended to copy a spooled file over a network -- but if
you specify the same system as the destination computer, you can use it
to duplicate a spooled file.

Option 2:
If the spooled file is just plain SCS (not AFP) another solution is to
CPYSPLF with *FCFC, then copy it back to create a second print file.

Option 3:
A more complicated and deluxe way is to create a tool that dumps the
spooled file and it's attributes to a user space (using APIs) then
creates a new spooled file from the user space. This lets you duplicate
the spooled file exactly... It requires complex programming, but you
could use this to write a tool that you could re-use everyone -- so it'd
be a one time shot.

Good luck

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.