You can assign a default shell to each batch queue. The default shell is used in cases where the user does not specify a shell when submitting a job to the batch queue.
Manager privileges are required to set the default shell for a batch queue.
Using Batch Manager:
-
Select the batch queue.
-
Select Queue > Properties.
Batch Manager displays the Queue Properties Dialog Box.
-
Select the Shells tab.
-
Select a shell from the Shell List box, and click Set Default.
-
Click OK.
Using the command line:
-
Start qmgr.
-
Use the set default shell command to set the default queue for the server.
Using the Batch API:
-
Use the BatchGetQueueInfo to obtain the BATCH_QUEUE_INFO_2 structure for the queue.
-
Edit the BATCH_QUEUE_INFO_2.v.batch.defaultshell value as desired for the queue.
-
Use the BatchSetQueueInfo function with the edited structure to set the new default shell.