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