Operating System - OpenVMS
1753553 Members
4655 Online
108795 Solutions
New Discussion юеВ

Re: Removing an exec que from generic que

 
SOLVED
Go to solution
Rich Hearn
Regular Advisor

Removing an exec que from generic que

Hi All,

I have a generic que with lots of jobs in it that I don't want to lose, but I want to remove an execution que from it for one of it's two node::exec_que's specified.

Is there an easy cmd I'm not finding or do you create another generic que, assign/merge to the new 'tmp', init orig with only one node specified, then assign/merge back to it?

I'm hoping there's an easy 1 line cmd

Tnx,
Rich
10 REPLIES 10
Hakan Zanderau ( Anders
Trusted Contributor

Re: Removing an exec que from generic que

Rich,

INIT/QUEUE/GENERIC=(queue1,queue2,.....) MY_GENERIC_QUEUE

regards,

Hakan Zanderau
HA-solutions
Don't make it worse by guessing.........
Hakan Zanderau ( Anders
Trusted Contributor

Re: Removing an exec que from generic que

The queue needs to be in STOPPED state before the (re)-init command.
Don't make it worse by guessing.........
Rich Hearn
Regular Advisor

Re: Removing an exec que from generic que

Hakan,

I thought the init would also cause the jobs to be "lost". That is incorrect then?

Tnx,
Rich
Hakan Zanderau ( Anders
Trusted Contributor

Re: Removing an exec que from generic que

You don't loose any jobs.....

Try this

$ INIT/QUE DUMMY1
$ INIT/QUE DUMMY2
$ INIT/QUE/GEN=(DUMMY1,DUMMY2) DUMMY_GEN
$ PRINT/QUE=DUMMY_GEN SYS$LOGIN:LOGIN.COM
$ SHOW QUE/ALL/FULL DUMMY*
$ INIT/QUE/GEN=(DUMMY1) DUMMY_GEN
$ SHOW QUE/FULL/ALL DUMMY*

regards,

Hakan Zanderau
HA-solutions

Don't forget to clean up.....
Don't make it worse by guessing.........
Rich Hearn
Regular Advisor

Re: Removing an exec que from generic que

Hakan,

I tried a test, but that didn't seem to work - it didn't like the type of queue.

Rich
Rich Hearn
Regular Advisor

Re: Removing an exec que from generic que

Hakan,

Thank you for all of your thoughts and examples. As I was re-looking at this problem, I realized I can, temporarily at least, use assign/merge and periodically check it to keep applying the assign/merge to get around removing the node::exec_que:

I *will* take your last example and try it out for a more permanent answer. I'll let you know how this works.

Thanks again,
Rich
Hakan Zanderau ( Anders
Trusted Contributor

Re: Removing an exec que from generic que

/BATCH

regards,

Hakan Zanderau
HA-solutions
Don't make it worse by guessing.........
Hakan Zanderau ( Anders
Trusted Contributor
Solution

Re: Removing an exec que from generic que

So you don't missunderstand.

$ INIT/QUE/BATCH/GEN=(X,Y,...) MY_GENERIC

regards,

Hakan Zanderau
HA-solutions
Don't make it worse by guessing.........
Hakan Zanderau ( Anders
Trusted Contributor

Re: Removing an exec que from generic que

Rich,

You didn't mention it was a BATCH queue.

The commands are all the same, but you need to add /BATCH for batchqueues.

regards,

Hakan Zanderau
HA-solutions
Don't make it worse by guessing.........