• Subject: Re: Change job of a SPLF
  • From: dkahn@xxxxxxxxx (Dave Kahn)
  • Date: Thu, 11 Nov 1999 15:19 +0000 (GMT Standard Time)

End of the Trail (endofthetrail@skyenet.net)wrote:

> I would copy them to a file (S36 -> copyprint). It has been a while =
> since I have used it but the 400 has something like cpyprtf or =
> something.  I would pull the spooled reports to a file and delete them. 
>  =
> If I needed to reprint them in the future, I could cpyprtf them back.  =
> You could back them up to tape and store them for the year, if you =
> wished.   The K.I.S.S. method.

CPYSPLF I think, not having access to an AS/400 right now. Yep, that'd 
work but you would lose all the spooled file attributes. If that's not 
important, then fine. The SNDNETSPLF option is a better option and almost 
as simple.

A better solution technically, though requiring some skilled programming 
up front, is to write a program that uses the spooled files APIs to create 
a copy and delete the old one. Everything remains the same except the job 
name, user profile, and job number. There are also APIs (Get Profile 
Handle) etc. that will enable the job to adopt any profile on the system 
so the only part of the job ID of the re-created spooled file that's 
completely outside your control is the job number.

Dave Kahn
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 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].