- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Empty out a VMS print queue
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 02:58 AM
10-23-2006 02:58 AM
Is there a easier way to empty out a VMS queue with one (1) command line? I have hundreds of entries in this queue and it would take a good 1 hour to empty it by a simgle del/entry=xxx
Please help.
Thank you in advance.
Jorge
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 03:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 03:23 AM
10-23-2006 03:23 AM
Re: Empty out a VMS print queue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 03:27 AM
10-23-2006 03:27 AM
Re: Empty out a VMS print queue
did you do a STOP/QUE/NEXT? perhaps this is an execution queue with a generic queue pointing to it? Then you have to stop/delete the generic queue 1st.
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 03:40 AM
10-23-2006 03:40 AM
Re: Empty out a VMS print queue
I had a little .COM file once that did what you are after, since I couldn't find a way to do it from a single command.
I think it worked with a bit of F$GETQUI in a loop.
I'll have a hunt around and see if I can find it, can't promise it's still about though it was a few years ago.
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 03:44 AM
10-23-2006 03:44 AM
Re: Empty out a VMS print queue
http://groups.google.co.uk/group/comp.os.vms/browse_frm/thread/85cdd2ec23acad70/0ace51f857bfc431?lnk=st&q=delete+print+queue+entries+vms&rnum=11&hl=en#0ace51f857bfc431
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 04:06 AM
10-23-2006 04:06 AM
Re: Empty out a VMS print queue
~Many thanks!!
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 09:24 AM
10-23-2006 09:24 AM
Re: Empty out a VMS print queue
I think this one is a bit more efficient than the one at the search link, since it doesn't have to loop to find the correct print queue. If you have lots of queues, this might make a noticable difference.
It also checks only printer and terminal queues so you can't acidentally clean out an execution queue with a typo. The I/O syntax might not be as clean, though:-)
$ If (P1.NES."")
$ THEN
$ WHICH_Q = P1
$ ELSE
$ READ/END=DONE/PROMPT="Enter the name of the queue you wish to clean: " -
SYS$COMMAND WHICH_Q
$ IF WHICH_Q .EQS. "" THEN GOTO DONE
$ ENDIF
$
$! check queue existence and set context
$ Q_NAME = F$GETQUI("DISPLAY_QUEUE","QUEUE_NAME","''which_q'","PRINTER,TERMINAL,WILDCARD")
$ IF Q_NAME .EQS. "" THEN GOTO NO_QUEUE
$ STOP/QUEUE/RESET 'Q_NAME'
$
$LOOP:
$! get the next entry number and delete it from the queue
$ ENTRY == F$GETQUI("DISPLAY_JOB","ENTRY_NUMBER",,"ALL_JOBS,WILDCARD")
$ IF (ENTRY.EQS."") THEN GOTO DONE
$ DELETE/ENTRY='ENTRY' 'Q_NAME'
$ GOTO LOOP
$
$NO_QUEUE:
$ WRITE SYS$OUTPUT "Queue ''which_q' does not exist."
$
$DONE:
$! clear queue context
$ Q_NAME = F$GETQUI("")
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 11:32 AM
10-23-2006 11:32 AM
Re: Empty out a VMS print queue
$ INIT /QUEUE JUNKQ !add /BATCH or /DEVICE
$ ASSIGN/MERGE JUNKQ the_real_q
$ DELETE/QUEUE JUNKQ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 04:46 PM
10-23-2006 04:46 PM
Re: Empty out a VMS print queue
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 06:47 PM
10-23-2006 06:47 PM
Re: Empty out a VMS print queue
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2006 11:10 PM
10-23-2006 11:10 PM
Re: Empty out a VMS print queue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2006 12:02 AM
10-24-2006 12:02 AM
Re: Empty out a VMS print queue
http://wwwvms.mppmu.mpg.de/util_root/com/abojob.com