Sets the status of a virtual host to enabled or disabled.
SET HOST >>-SET HOST(data-area)--+--------------------+----------------->< '-ENABLESTATUS(cvda)-'
Conditions: NOTAUTH, NOTFND
This command is threadsafe.
The SET HOST command is used to set the status of a virtual host to enabled or disabled. Disabling a virtual host means that all the URIMAP definitions that make up the virtual host cannot be accessed by applications. When a virtual host is disabled, CICS® returns a HTTP response with a 503 (Service Unavailable) status code to Web clients.
When the INQUIRE URIMAP command is used to inquire on an individual URIMAP definition, a special status DISABLEDHOST is returned to indicate that the virtual host is disabled. You do not need to change the disabled status of the URIMAP definitions individually; the SET HOST command can be used to re-enable all the URIMAP definitions that make up the virtual host. However, note that a URIMAP definition with the DISABLEDHOST status cannot be discarded. If you want to discard the definition, it must be disabled individually (using the SET URIMAP command).