The default queue on a server is the queue to which batch jobs are submitted when the user does not explicitly request a queue. The default queue cannot be a remote queue; it must exist on the server.
Manager privileges are required to set a default queue.
Using Project Management:
-
In Project Management, right-click the model and select Configure Queues for Jobs.
The Configure Queues for Jobs dialog displays.
-
Type a queue name into the Default Queue box or select a queue from the dropdown list.
-
Select OK.
Using Batch Manager:
-
Select the server.
-
Select Server > Properties.
The Server Properties Dialog Box displays.
-
Type a queue name into the Default Queue box, or select a queue from the dropdown list.
-
Click OK.
Using the command line:
-
Start qmgr.
-
Use the set default batch_request queue command to set the default queue for the server.
You can use the qmgr utility to create a batch file with a series of commands to
manage the queues. This reduces the administrative workload across all client machines.
For example, when you run the below command lines on a batch file that exists on all
client machines, you create the same piped queues on each client:
create pipe_queue <Pipe queue Name> priority = queue-priority [ destination =dest-name
] [ run_limit = run-limit ]
enable queue <Pipe queue Name>
start queue <Pipe queue Name>
Using the Batch API:
-
Use the BatchGetServerInfo function to obtain the current BATCH_SERVER_INFO structure.
-
Modify the BATCH_SERVER_INFO defaultqueue field.
-
Use the BatchSetServerInfo function with the modified BATCH_SERVER_INFO structure to set the default queue.