Operating System - OpenVMS
1757865 Members
2530 Online
108866 Solutions
New Discussion

Re: How to delete hundreds of queue in pending

 
SOLVED
Go to solution
smsc_1
Regular Advisor

How to delete hundreds of queue in pending

Hello community, I'm stuck with an issue on OpenVMS since I have hundreds of pending queue like this:

5009012 NTPSET USER Pending
5009014 NTPSET USER Pending
5009016 NTPSET USER Pending
5009018 NTPSET USER Pending
5009020 NTPSET USER Pending
5009022 NTPSET USER Pending
5009024 NTPSET USER Pending
5009026 NTPSET USER Pending
5009028 NTPSET USER Pending
5009030 NTPSET USER Pending

I count over 100.000 entries and I don't know how to delete it (one by one it's impossible). I tried to stop it and then delete, but I got:

del /queue SMZ1_BATCH
%DELETE-E-NOTDELETED, error deleting SMZ1_BATCH
-JBC-E-REFERENCED, existing references prevent deletion

Could someone help me to address this issue ?

Thank you

Lucas

./ Lucas
5 REPLIES 5
Steven Schweda
Honored Contributor
Solution

Re: How to delete hundreds of queue in pending

> [...] I have hundreds of pending queue like this:
> [...]

   "queue" or queue _entries_ like this?  This is output from a command
like:
      show queue /all your_queue_name
or what, exactly?

> [...] I tried to stop it and then delete, but I got:

   I don't know of a better fast way. so I might try a DCL script which
enumerates all the jobs of interest, and does "delete /entry = xxx" for
each of them. Perhaps that would be easy and fast enough.

      help Lexicals F$GETQUI

   F$GETQUI is rather complicated, and I don't have an example script
which does exactly what you want, but I do have one which might be
pretty easy to adapt.

      http://antinode.info/ftp/misc/queue_check.com

   Instead of using "write sys$output" to display the info for each job,
use "delete /entry = 'entry_nr'" to whack each job.  If ALL_JOBS is not
selective enough, feel free to add more conditions.

   Have you figured out how to stop adding more of these jobs to the
queue(s)?

smsc_1
Regular Advisor

Re: How to delete hundreds of queue in pending

Thank you, I ended up to export the whole list, and create the delete commands from bash linux shell, cause I'm not DCL expert.

Now I deleted every entries, but queue wont start:

START/queue SMZ2_BATCH
%JBC-I-AUTONOTSTART, queue is auto start active, but not started

On the other cluster node everything is ok:

Batch queue SMZ1_BATCH, available, on SMZ1::

Any clue please?

./ Lucas
Steven Schweda
Honored Contributor

Re: How to delete hundreds of queue in pending

> %JBC-I-AUTONOTSTART, queue is auto start active, but not started

      help /message AUTONOTSTART

> [...] I'm not DCL expert.

      Documentation abounds at: https://docs.vmssoftware.com/

smsc_1
Regular Advisor

Re: How to delete hundreds of queue in pending

DONE Thank you.

./ Lucas
Sunitha_Mod
Moderator

Re: How to delete hundreds of queue in pending

Hello @smsc_1,

Perfect! 

We are extremely glad to know your concern has been addressed. 

Thanks,
Sunitha G
I'm an HPE employee.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo