Previous Topic: /SDESK CommandNext Topic: /SHUTDOWN Usage Notes


/SHUTDOWN Command

The /SHUTDOWN command causes a normal termination of CA WA CA 7 Edition execution. Due to the impact of shutting down CA WA CA 7 Edition, use the /SHUTDOWN command with caution.

Only a terminal that is specified as the Master or Alternate Master can use the /SHUTDOWN command. Those terminals are defined as CONS=MASTR or CONS=ALTRN on the TERM statement in the initialization file.

You can set default /SHUTDOWN options on the OPTIONS statement in the initialization file. These options take effect when you enter /SHUTDOWN with no parameters.

This command has the following format:

/SHUTDOWN[,Zn]
Zn

(Optional) Specifies the method of shutdown as follows:

Z1

Specifies a "fast" shutdown of CA WA CA 7 Edition. Messages are not sent to the individual terminals. CA WA CA 7 Edition does not wait for them to log out but waits for batch type terminals to complete (this process includes CAICCI terminals).

Z2

Specifies that shutdown is to occur even if batch type terminals are still active, but the shutdown waits for online terminals to log out.

Z3

Specifies that shutdown is to occur even if online terminals, batch type terminals, or both are active.

Note: If you do not specify a form of Zn, CA WA CA 7 Edition terminates after all terminals have logged off. No batch type terminals can be active.

If a BTI is active when a shutdown is done with a "fast" option that includes not waiting for batch type terminals, CA WA CA 7 Edition can possibly abend (S002, for example). This abend can result from IO control blocks that are changing status (OPEN/CLOSE) during an IO operation.