Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

/library qualifier with $ set queue

SOLVED
Go to solution
Joewee
Regular Advisor

/library qualifier with $ set queue

Need Help!

How to change the Library used by a print queue without reinitializing the queue.

We have two libraries, one is HPL4 and another HPL4D. I have lot of queues in which I have to change from one library to another.

Also the are many jobs in these queues with the Error "Stock type mismatch"

Im not aware of the option to change the /library option of the print queue

Queue information:

sho queue/all/full Queue_name
Printer queue Queue_name, idle, on NODE::"Printer:9100",
mounted form HPL4 (stock=HPL4)

/AUTOSTART_ON=(NODE::"Printer:9100") /BASE_PRIORITY=4 /BLOCK_LIMIT=(1,"")
/CHAR=(0) /DEFAULT=(FEED,FORM=HPL4 (stock=HPL4)) /LIBRARY=HPL4
Lowercase /OWNER=[SYSTEM] /PROCESSOR=UCX$TELNETSYM /PROTECTION=(S:E,O:D,G:R,
W:W) /SEPARATE=(RESET=(HPL4_RESET))
5 REPLIES
abrsvc
Respected Contributor

Re: /library qualifier with $ set queue

I would create 2 different queues pointing to the same printer. As long as the "setup" page preceeds the actual job (if any setup is required), this should work. Then all that is required is to point to the correct queue.

Check the use of 2 queues that feed a single generic queue for the device as another option. I used to have a portrait and landscape queue pointing to a generic printer que for example.

Dan
EdgarZamora_1
Respected Contributor
Solution

Re: /library qualifier with $ set queue

Not sure why you don't want to reinitialize the queue. If you're afraid of losing all the jobs in the queue, don't be. You can stop the queue, initialize it with the new /library specification then restart it without losing your jobs.

CLCC1> sho que bon_kon_it/full
Printer queue BON_KON_IT, idle, on CLCC1::"IP_LPD/bon-prt4-t3500-2",
mounted form DEFAULT

/BASE_PRIORITY=4 /DEFAULT=(FORM=DEFAULT) /NOENABLE_GENERIC /LIBRARY=KONPS_LIB
Lowercase /OWNER=[SYSTEM] /PROCESSOR=DCPS$SMB /PROTECTION=(S:M,O:D,G:R,W:S)
/SEPARATE=(FLAG)

Entry Jobname Username Blocks Status
----- ------- -------- ------ ------
1204 LOGIN EZAMORA 5 Pending (stock type mismatch)
Submitted 28-JAN-2011 15:17:28.78 /NOFEED /FORM=INVOICE /PRIORITY=100
File: _DSA3010:[USERS.EZAMORA]LOGIN.COM;18 /NOFEED
CLCC1> stop/next bon_kon_it
CLCC1> init /que bon_kon_it/libr=dcps_lib
CLCC1> start/que bon_kon_it
CLCC1> sho que bon_kon_it/full
Printer queue BON_KON_IT, idle, on CLCC1::"IP_LPD/bon-prt4-t3500-2",
mounted form DEFAULT

/BASE_PRIORITY=4 /DEFAULT=(FORM=DEFAULT) /NOENABLE_GENERIC /LIBRARY=DCPS_LIB
Lowercase /OWNER=[SYSTEM] /PROCESSOR=DCPS$SMB /PROTECTION=(S:M,O:D,G:R,W:S)
/SEPARATE=(FLAG)

Entry Jobname Username Blocks Status
----- ------- -------- ------ ------
1204 LOGIN EZAMORA 5 Pending (stock type mismatch)
Submitted 28-JAN-2011 15:17:28.78 /NOFEED /FORM=INVOICE /PRIORITY=100
File: _DSA3010:[USERS.EZAMORA]LOGIN.COM;18 /NOFEED
CLCC1>
Steve Reece_3
Trusted Contributor

Re: /library qualifier with $ set queue

Hi Joewee,

Using the INITIALIZE command on the queue to change the library doesn't affect the jobs in the queue or the rest of the queue setup so there's no problem there. I don't know if there's another reason that you're not wanting to reinitialize the queue though.

Is there any reason that the two libraries must be separate? Could you just have one library with all of the printing modules in? That would avoid the need to have two queues and would make that aspect of queue management more straightforward. The only issue that I can think of then is if you need to update modules in the library you'll need to stop all of the queues but you'd need to stop them anyway if you update the library...?
Bojan Nemec
Honored Contributor

Re: /library qualifier with $ set queue

Joewee,

And if you are afraid of the INITIALIZE command, you can also use START to change the library:

$ STOP/NEXT Queue_name
$ START/QUEUE Queue_name /LIBRARY=HPL4D

Bojan
Joewee
Regular Advisor

Re: /library qualifier with $ set queue

Thanks!!

I Initialized all the queues and all the jobs ran to successful completion.

Regarding multiple Forms: In our environment VMS is used mostly for printing. Different team needs different formats in their outputs.

Thanks again for all your inputs!!!