Question

Asked:
Asked By:
Nov 18 2008   12:51 AM GMT
Piano   250 pts.

Delete Spool File


Spool files, OVRPRTF, WRKSPLF, Work with Spooled Files, Override with Printer File

When placing a 4 next to a spool file to delete the spool file, is there some way to disallow this. (Possibly thru OVRPRTF command).
I have certain spool files that I do not want to allow an operator to delete, until hey have been scanned.

Part B of this question, is once scanned, can I somehow change at this point to allow them to delete the spool file.

Please advise

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



One option is to create your own screen/program which looks and acts alot like WRKSPLF but with your code under the covers. Then your pogram can decied when to accept the delete request.
  • AddThis Social Bookmark Button

Browse more Questions and Answers on AS/400.

Looking for relevant AS/400 Whitepapers? Visit the Search400.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register

Piano   250 pts.  |   Nov 20 2008  7:59PM GMT

Thank you for your response.

However this solution isn’t feasible since most spool files can be deleted, and so the effort would be great!

I really only want to modify one particular spool file with USRDTA named CASHPS thru OVRPRTF command . This is what you see when you use the WRKSPLF. Can we do seomthing in this C/L program so that after the file spools out, it prevents any user from deleting.

If so, can we then change back after the spool file gets scanned, so that anyone is allowed to delete this file.

Again, we are talking about one spool file singled out by USRDTA=CASHPS.

Please advise

 

Philpl1jb   15100 pts.  |   Nov 20 2008  9:50PM GMT

No, I don’t know of anything that will do what you want to the spool file.

But it looks like you can restrict access to an outq .. and the spool files in it.
wrkoutqd
Operator controlled . . . . . . . . . : *NO
Authority to check . . . . . . . . . . : *DTAAUT

and setting the object authority on the Queue to restrict
data delete

 

GreenleeB   90 pts.  |   Nov 21 2008  6:52PM GMT

You don’t explain how the scanning is accomplished. Is this an automatic procedure or is the spooled file printed and then fed to a scanner?

It sounds like theses spooled file are mixed in with others and get deleted by mistake. I would think that these spooled files should be routed to an outq specifically for scanning and, perhaps, restricted from anyone other than those who do the scanning. This way documents to be scanned would be segregated and the likelihood of them being deleted by accident would be reduced. If you choose to restrict the outq, the authorized users would have authority to delete them afterward.