SET SCHEDMODES (Select a central scheduling mode)
Use this command to determine how the clients communicate with the server to begin scheduled work. You must configure each client to select the scheduling mode in which it operates.
Use this command with the SET RETRYPERIOD command to regulate the time and the number of retry attempts to process a failed command.
You can issue the QUERY STATUS command to display the value for the scheduling mode supported. At installation, this value is ANY.
Privilege class
To issue this command, you must have system privilege.
Syntax
Parameters
- ANY
- Specifies that clients can run in either the client-polling or the server-prompted scheduling mode.
- POlling
- Specifies that only the client-polling mode can be used. Client nodes poll the server at prescribed time intervals to obtain scheduled work.
- PRompted
- Specifies that only the server-prompted mode can be used. This mode is only available for clients that communicate with TCP/IP. Client nodes wait to be contacted by the server when scheduled work needs to be performed and a session is available.
Example: Restrict scheduled operations to clients using client-polling
Clients can run under both server-prompted and client-polling central scheduling. You want to temporarily restrict the scheduled operations to clients that use the client-polling mode. If you set the schedule mode to POLLING, the server discontinues prompting clients to run scheduled commands. This means that any client scheduler using the server-prompted mode waits until you set the schedule mode to ANY or PROMPTED.set schedmodes polling
Related commands
Command | Description |
---|---|
QUERY STATUS | Displays the settings of server parameters, such as those selected by the SET commands. |
SET RETRYPERIOD | Specifies the time between retry attempts by the client scheduler. |