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
- Requires job control (*JOBCTL) authority.
- A value other than *NONE for INSPTFDEV requires all object (*ALLOBJ) special authority.
- IPLSRC(*IMGCLG) requires execute authority to library QUSRSYS, use authority to the image catalog and to the virtual device description, and execute authority to each directory in the image catalog path name.
- If a user exit program is registered to exit point QIBM_QWC_PWRDWNSYS for format PWRD0100, the user needs use authority to the program and execute authority to its library. Otherwise the exit is not called and the system still powers down.
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.
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.
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.
*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
Allowed values:
*NO, *YES
Restart type
Restart type
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.
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.
VFYTYPE
Verify type
Allowed values:
*UPGRADE, *LIC
ENDSBSOPT
End subsystem option
Allowed values:
*DFT, *NOJOBLOG, *CHGPTY, *CHGTSL
TIMOUTOPT
Timeout option
Allowed values:
*CONTINUE, *MSD, *SYSREFCDE
CONFIRM
Confirm
Specifies whether the request is confirmed before the system powers down.
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.
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.
Generated from os/cl/catalog/PWRDWNSYS.json and os/cl/help/PWRDWNSYS.json.