qibm_notify_crtsplf could take care of problem #1. Set it in the users initial job if you don't want it apply to everybody. Not sure on #2. All of my outq/dtaq usage is via fake printers designed to process spool files to various destinations.
On Wed, 2020-02-19 at 04:18 +0000, Roger Harman wrote:
Two problems I see....
1) You'd have to monitor every outq
2) Sometimes the file is gone by the time you can react.
Remember, it has to be in a RDY state to have a message placed on the data queue and I've seen them disappear into the printers buffer before I could do anything.
Roger Harman
COMMON Certified Application Developer - ILE RPG on IBM i on Power
-----Original Message-----
From: MIDRANGE-L [mailto:
<mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx>
midrange-l-bounces@xxxxxxxxxxxxxxxxxx
] On Behalf Of Vernon Hamberg
Sent: Tuesday, February 18, 2020 11:07 AM
To: Midrange Systems Technical Discussion
Subject: Re: Easy way to have all of a given user's spool files automatically held?
There is a way to use a DTAQ, perhaps - here is the documentation on
this feature -
You can associate a data queue with an output queue so that when a
spooled file on the output queue goes to a ready (RDY) status, an
entry is sent to the data queue.
To view the layout or content of the data queue entry that is sent,
seeRecord type 01 data queue entry format
<
<
http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/index.jsp?topic=/rzalu/rzalurectype01.htm>
http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/index.jsp?topic=/rzalu/rzalurectype01.htm
.
To associate the data queue and output queue, use theCreate Data Queue
(CRTDTAQ)command to create the data queue. Specify the maximum message
length (MAXLEN) parameter value as at least 128. The sequence (SEQ)
parameter value is*FIFOor*LIFO. Then, on the
A program could be waiting on the DTAQ and have a table to control what
you do.
Maybe?
Vern
On 2/17/2020 4:14 PM, James H. H. Lampert wrote:
I've probably asked this before, and probably more than once, but . . .
Is there an easy way to set a given user so that *all* of that user's
spool files are held on creation?
--
JHHL
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email:
<mailto:MIDRANGE-L@xxxxxxxxxxxxxxxxxx>
MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
<
https://lists.midrange.com/mailman/listinfo/midrange-l>
https://lists.midrange.com/mailman/listinfo/midrange-l
or email:
<mailto:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx>
MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
<
https://archive.midrange.com/midrange-l>
https://archive.midrange.com/midrange-l
.
Please contact
<mailto:support@xxxxxxxxxxxx>
support@xxxxxxxxxxxx
for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
<
https://amazon.midrange.com>
https://amazon.midrange.com
[
https://www.medtronsoftware.com/img/MedtronMinilogo.bmp] Kevin Bucknum
Senior Programmer Analyst
MEDDATA / MEDTRON
120 Innwood Drive
Covington LA 70433
Local: 985-893-2550
Toll Free: 877-893-2550
https://www.medtronsoftware.com
CONFIDENTIALITY NOTICE
This document and any accompanying this email transmission contain confidential information, belonging to the sender that is legally privileged. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from disclosing this information to any other party and is required to destroy the information after its stated need has been fulfilled. If you are not the intended recipient, or the employee of agent responsible to deliver it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or action taken in reliance on the contents of these documents is STRICTLY PROHIBITED. If you have received this email in error, please notify the sender immediately to arrange for return or destruction of these documents.
As an Amazon Associate we earn from qualifying purchases.