Technical data

Setting Up and Maintaining Queues
14.8 Solving Queue Problems
Example
The following example includes several commands used to fix problems
preventing the deletion of a queue:
$ DELETE/QUEUE JADE_BATCH
!
%DELETE-E-NOTDELETED, error deleting JADE_BATCH
-JBC-E-QUENOTSTOP, queue must be stopped to perform operation
"
$ STOP/QUEUE/NEXT JADE_BATCH
#
$ DELETE/QUEUE JADE_BATCH
$
%DELETE-E-NOTDELETED, error deleting JADE_BATCH
%
-JBC-E-REFERENCED, existing references prevent deletion
$ SHOW QUEUE/FULL
.
.
.
Generic batch queue CLUSTER_BATCH
&
/GENERIC=(JADE_BATCH,RUBY_BATCH,OPAL_BATCH) /OWNER=[SYSTEM]
/PROTECTION=(S:M,O:D,G:R,W:R)
.
.
.
$ STOP/QUEUE/NEXT CLUSTER_BATCH
$ START/QUEUE CLUSTER_BATCH/GENERIC=(RUBY_BATCH,OPAL_BATCH)
(
$ DELETE/QUEUE JADE_BATCH
)
The commands this example perform the following tasks:
! The DELETE/QUEUE command attempts to delete the queue.
" The message indicates that the queue is not stopped.
# The STOP/QUEUE/NEXT command stops the queue after allowing the
current job to complete.
$ The DELETE/QUEUE command again attempts to delete the queue.
% This time, the message indicates that references to the queue exist.
& The SHOW QUEUE/FULL command shows information about all queues.
However, the only reference to JADE_BATCH names the queue as a target
queue for the generic queue CLUSTER_BATCH.
The STOP/QUEUE/NEXT command stops the generic queue that targets
JADE_BATCH.
( The START/QUEUE command eliminates the reference to JADE_BATCH by
restarting the generic queue without specifying JADE_BATCH as a target.
) The DELETE/QUEUE command successfully deletes the queue.
14.8.6 Solving Problems Deleting Files
To delete a file using the PRINT/DELETE or SUBMIT/DELETE command,
the clusterwide queue manager process must have access to the file specified.
Otherwise, the file is printed or submitted but not deleted.
You can ensure that the PRINT/DELETE or SUBMIT/DELETE command deletes
the specified files by mounting the disks on which the files reside clusterwide.
To mount a disk clusterwide, use the /CLUSTER qualifier with the MOUNT
command.
1476 Setting Up and Maintaining Queues