Deleting multiple print jobs in OpenVMS


My problem is that I am trying to find a way to delete multiple jobs out of a print que in OpenVMS WITHOUT having to type in the number of each job name.

The command I know to use is delete/entry=job number,next job number. This works fine except I need to delete thousands of jobs out of the que so typing in each number won't work.

Any help GREATLY Appreciated!!
Who is Participating?
>I will start looking for that startup file now.  Thanks for the help so far!

 Another thing to try if you don't find it:

(log in as system)

$ search *.com "init/queue"

should reveal any command file that has the init/queue command within it.

(Sorry if I am repeating the obvious, but I am assuming you may not be very familair with VMS. The *.com files are text files, with a role like *.bat files in Windows. The is like autoexec.bat in Windows)
I would just delete the queue, then create it again.

For example:

$ stop/queue/reset queue-name
$ delete/queue queue-name
and then the command to re-create the queue.

(I have my command in a command file for convenience, but it's usually something like:


tvurtAuthor Commented:
Thank you r-k.  I am a windows admin - and know next to nothing about the VMS system I am supposed to maintain :(. It is a legacy application - and no longer supported.  Would deleting this queue have any effects on the system that I am not aware of?

I could delete the queue when no users are logged on - and re-create it.    But I know nothing about re-creating a queue.  How would I find out what parameters need to be set when the queue is created?

Thanks very much in advance - I am so out of my element here.

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Stopping and deleting the queue should have no bad effects (other than losing anything in the print queue), but you should know how to re-create the queue. Normally you may find commands in the (or file for creating the queue, so I would look there first. Like I mentioned the command will be something like "init/queue/start..." but may be something else depending on the type of queue you have. Rebooting may also restore the queue, but you should not count on that - better to know in advance that you can create it yourself w/o a reboot.

If the above is not making sense, you can try the following:

$ show queue
(lists names of all queues)

$ show queue/full queue-name  
(where queue-name is the queue you want to clear)

and post the output of the last command here.

I will try to help, but must admit we don't have a recent version of VMS here anymore.

Good luck.
tvurtAuthor Commented:
Thanks for the help.

Here are the results

Printer queue CHECK4, stopped, on TPM::"", mounted form CHECK

 Entry  Jobname         Username     Blocks  Status                            
  -----  -------         --------     ------  ------                            
         (1585 intervening jobs containing 36455 blocks)                        
   6845  ZAP_13_26_04    ZAP           23  Pending (queue stopped)          
         Submitted 13-APR-2005 13:26:04.23 /FORM=CHECK /PRIORITY=100            
         File: _TPM$DRA0:[CHECK_RECEIPT]ZAP_13_26_04.CHECK_956;1 /DELETE        



Oops, that's a type of queue (ucx$telnetsym) that I am not personally familiar with setting up.

Did you have any luck finding the queue start command in the systartup... file?

What version of VMS are you running (type SHOW SYS and look at the first line)

I assume you noticed that the queue is "stopped". If you restart the queue, it may resume working normally, though it will print the hundreds of pending jobs, which you may want to avoid.
You can also consider posting your question to the comp.os.vms newsgroup. There are many VMS experts there. It's accessible via the web at:
tvurtAuthor Commented:

I will start looking for that startup file now.  Thanks for the help so far!

tvurtAuthor Commented:
Thanks for all your help.

No problem. Always glad to help with VMS topics. It was my favorite system for about 20 years. Hope you were able to get your queue cleared up.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.