Command reference / sys

PWRDWNSYS

Power Down System

Prepares the system for ending and then starts the power-down sequence. All active subsystems are told the system is powering down, and no new jobs or routing steps can start, so jobs waiting on a job queue will not start. Jobs queued by Transfer Job (TFRJOB) will not complete; they are removed during the next IPL and their job logs are produced. With *CNTRLD, vary-off of configuration objects is started but may not finish before power down completes. With *IMMED, no vary-off is performed.

Allowed environments: *ALL. Positional parameters: 2.

Restrictions

Parameters

OPTION How to end

Specifies whether active subsystem jobs end in a controlled manner, letting programs run end-of-job processing, or end immediately. In either case the system performs certain job-cleanup functions.

Type
*CHAR
Required
No
Default
*CNTRLD
Length
7
Case
Uppercase

Allowed values: *CNTRLD, *IMMED

*CNTRLD
Active jobs end in a controlled manner within the DELAY time, and programs can run cleanup. Jobs with a SIGTERM handler receive that signal.
*IMMED
Active jobs end immediately. Apart from SIGTERM handling, programs get no cleanup, and time limits come from the QENDJOBLMT and QPWRDWNLMT system values.

DELAY Controlled end delay time

Specifies how many seconds the active subsystems have to complete a controlled end; jobs still running at the limit are ended immediately. The default is 3600 seconds.

Type
*UINT4
Required
No
Default
3600
Range
1 to 99999
Case
Uppercase

Suggested / special values: *NOLIMIT

*NOLIMIT
The system does not power down until the last job completes.

RESTART Restart options

Specifies whether the system powers down or ends and restarts unattended, and the point from which the IPL restarts. Element 1 is restart after power down; element 2 is restart type.

Type
*ELEM
Required
No
Case
Uppercase
*NO
The system ends and powers down.
*YES
On utility power, the system ends processing and does an abbreviated IPL. On auxiliary power, it powers down and an automatic IPL occurs when utility power returns. The IPL runs unattended.
*IPLA
Uses the value set by the Change IPL Attributes (CHGIPLA) command.
*SYS
The operating system is restarted; hardware restarts only when required.
*FULL
All parts of the system, including hardware, are restarted.
Elements in order

Restart after power down Restart after power down

Type
*CHAR
Required
No
Default
*NO
Length
4
Case
Uppercase

Allowed values: *NO, *YES

Restart type Restart type

Type
*CHAR
Required
No
Default
*IPLA
Length
5
Case
Uppercase

Allowed values: *IPLA, *SYS, *FULL

IPLSRC IPL source

Specifies whether the IPL starts from the A-source, B-source, or D-source (install media), which also determines where LIC PTFs are applied.

Type
*CHAR
Required
No
Default
*PANEL
Length
7
Case
Uppercase

Allowed values: *PANEL, A, B, D, *IMGCLG

*PANEL
Starts from the source currently shown on the operator panel.
*IMGCLG
Starts from the image catalog named in IMGCLG. An install using that catalog runs after power down. RESTART(*YES) must be used.

IMGCLG Image catalog

Specifies the image catalog used when IPLSRC(*IMGCLG) is selected. An install using it is performed after power down. The catalog name is in library QUSRSYS, and RESTART(*YES) must be used.

Type
*NAME
Required
No
Length
10
Case
Uppercase

VFYTYPE Verify type

Type
*CHAR
Required
No
Default
*UPGRADE
Length
8
Case
Uppercase

Allowed values: *UPGRADE, *LIC

ENDSBSOPT End subsystem option

Type
*CHAR
Required
No
Default
*DFT
Length
9
List limit
3
Case
Uppercase

Allowed values: *DFT, *NOJOBLOG, *CHGPTY, *CHGTSL

TIMOUTOPT Timeout option

Type
*CHAR
Required
No
Default
*CONTINUE
Length
10
Case
Uppercase

Allowed values: *CONTINUE, *MSD, *SYSREFCDE

CONFIRM Confirm

Specifies whether the request is confirmed before the system powers down.

Type
*CHAR
Required
No
Default
*ENVVAR
Length
9
Case
Uppercase

Allowed values: *ENVVAR, *INTERACT, *YES, *NO

*ENVVAR
Uses the QIBM_PWRDWNSYS_CONFIRM environment variable. If it is unset or invalid, interactive jobs get a confirmation panel. System-initiated power downs do not use it.
*INTERACT
Interactive jobs get a confirmation panel. Non-interactive jobs get no confirmation.
*YES
Interactive jobs get a confirmation panel. Non-interactive jobs get an inquiry message to QSYSOPR.
*NO
No confirmation is requested.

INSPTFDEV Install PTF device

Specifies whether PTFs are loaded from a device before the system powers down. Loaded PTFs are marked for delayed apply and are applied during the next normal unattended IPL.

Type
*NAME
Required
No
Default
*NONE
Length
10
Case
Uppercase

Suggested / special values: *NONE, *SERVICE

*NONE
No PTFs are installed before power down.
*SERVICE
PTFs sent from the service support system are installed before power down.

Examples

PWRDWNSYS OPTION(*IMMED)

Ends the system immediately, without letting active jobs run cleanup, then starts the power-down sequence.

PWRDWNSYS OPTION(*CNTRLD) RESTART(*YES)

Controlled end with no time limit. After all jobs finish, the system starts an IPL. An entered PWRDWNSYS OPTION(*IMMED) can override it.

IBM command documentation

Generated from os/cl/catalog/PWRDWNSYS.json and os/cl/help/PWRDWNSYS.json.