Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Power Down System (PWRDWNSYS) command prepares the system for ending and then starts the power-down sequence. All active subsystems are notified that the system is being powered down; no new jobs or routing steps can be started by any subsystem. For example, jobs that are on a job queue will not be started. In addition, jobs that are on a job queue as a result of a Transfer Job (TFRJOB) command will not complete. They are removed from the job queue during the subsequent initial program load (IPL), and their job logs are produced.
When the system is powered down with the *CNTRLD option, a vary off of configuration objects is initiated, but may not complete before the power down completes. When the system is powered down with the *IMMED option, no vary off of configuration objects is performed.
Notes:
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
OPTION | How to end | *CNTRLD, *IMMED | Optional, Positional 1 |
DELAY | Controlled end delay time | 1-99999, 3600, *NOLIMIT | Optional, Positional 2 |
RESTART | Restart options | Element list | Optional |
Element 1: Restart after power down | *NO, *YES | ||
Element 2: Restart type | *IPLA, *SYS, *FULL | ||
IPLSRC | IPL source | *PANEL, A, B, D, *IMGCLG | Optional |
IMGCLG | Image catalog | Name | Optional |
ENDSBSOPT | End subsystem option | Single values: *DFT Other values (up to 3 repetitions): *NOJOBLOG, *CHGPTY, *CHGTSL |
Optional |
TIMOUTOPT | Timeout option | *CONTINUE, *MSD, *SYSREFCDE | Optional |
CONFIRM | Confirm | *ENVVAR, *INTERACT, *YES, *NO | Optional |
Top |
Specifies whether the system allows the active subsystem to end processing of active jobs in a controlled manner (which lets the application program perform end processing), or whether the system ends the jobs immediately. In either case, the system does perform certain job-cleanup functions.
Note: The *IMMED value might cause undesirable results if data has been partially updated. This value should be used only after a controlled end has been attempted unsuccessfully.
Note: When *IMMED is specified while the system is operating under auxiliary power, or if the delay time specified in the Controlled end delay time (DELAY) parameter ends while the system is under auxiliary power, the system is immediately powered-down without additional job cleanup activity.
Top |
Specifies the amount of time, in seconds, that the system allows a controlled end to be performed by the active subsystems. If the end of job routines are not finished in the specified delay time, any remaining jobs are ended immediately.
Note: If *NOLIMIT is specified, a batch job could begin to loop, and the system does not power down.
Top |
Specifies whether the system ends and powers down, or whether the system ends and then starts again in unattended mode.
The second element of this parameter specifies the point from which the initial program load (IPL) restarts. Specifying *SYS rather than *FULL can reduce the time required to restart the system.
Element 1: Restart after power down
Element 2: Restart type
Top |
Specifies whether an initial-program-load (IPL) is started from the A-source, B-source or D-source of the system. This parameter allows you to control which Licensed Internal Code (LIC) storage source of the system to IPL. Also, the source of the system determines where LIC program temporary fixes (PTFs) are applied. This parameter also allows the system to be upgraded to a new release from an install image on DASD.
Source Considerations
LIC has three storage areas known as the A-source, the B-source and the D-source. The D-source is the install media. The A- and B-sources are part of the system memory. Initially, the A- and B-sources are identical, but when Licensed Internal Code fixes are performed temporarily (PTF), the temporary fixes are stored on the B-source. When the same fixes become permanent, they are copied from the B-source to the A-source; therefore, the fixes reside on both the A-source and the B-source.
When you want to send temporary fixes to the B-source, you must start the system from the A-source, which causes the fixes to be sent to the B-source.
When you start the system from the A-source, you are running the system from the permanent fixes. When you start the system from the B-source, you are running the system from a mixture of temporary and permanent fixes. When you start the system from the D-source, you are using the Licensed Internal Code loaded from the install media.
It is recommended that you specify RESTART(*YES); otherwise, you cannot be assured which source of the system is actually started. This precaution can save you some time.
Top |
Specifies the image catalog used when IPLSRC(*IMGCLG) is selected. After the system is powered down, an install using the specified image catalog is performed. See the Work with Catalog Entries (WRKIMGCLGE) command for more information. RESTART(*YES) must be used when this parameter is specified.
Top |
Specifies the options to take when ending the active subsystems. In general, specifying these options will improve the performance of the PWRDWNSYS command. Each option has certain side effects that you need to analyze before using that option.
This parameter has no effect on jobs that are already in the ending status.
Note: If OPTION(*IMMED) is specified, then no joblogs are produced during PWRDWNSYS regardless of the End subsystem option (ENDSBSOPT) parameter. However, these joblogs will still be produced on the next IPL of the system unless the *NOJOBLOG option is specified. Therefore, if you specify OPTION(*IMMED) ENDSBSOPT(*NOJOBLOG), the system will not power down more quickly, but the subsequent IPL may be faster.
Top |
Specifies the option to take when the system does not end within the time limit specified by the QPWRDWNLMT system value. If this time limit is exceeded, the subsequent IPL will be abnormal regardless of the value specified for this parameter.
Top |
Specifies whether the request should be confirmed before the system is powered down.
Top |
Example 1: Performing An Immediate End
PWRDWNSYS OPTION(*IMMED)
This command causes the system to perform an immediate end without allowing any active jobs to perform cleanup routines. Once the system completes its end functions, it starts the power-down sequence.
Example 2: Specifying a Controlled End
SBMJOB JOB(LASTJOB) JOBD(QBATCH) JOBPTY(9) JOBQ(QBATCH) RQSDTA('PWRDWNSYS *CNTRLD 3600')
This command submits a low priority batch job that, when run, causes the system to perform a controlled end. The controlled end is allowed one hour (3600 seconds) for completion before any remaining jobs are ended. This method of issuing the PWRDWNSYS command could be used to allow other higher priority jobs on job queue QBATCH (including those that are on the queue as a result of the Transfer Job (TFRJOB) command) to be completed before the PWRDWNSYS command is run. There must be an active subsystem for which the QBATCH job queue is a source of work.
Example 3: Specifying a Controlled End With No Time Limit
PWRDWNSYS OPTION(*CNTRLD) RESTART(*YES)
This command causes the system to perform a controlled end with no time limit. When all jobs in the system have completed, the system prepares for ending and starts an IPL.
After PWRDWNSYS OPTION(*CNTRLD) is entered, and before the delay time ends, this command can be overridden by entering PWRDWNSYS OPTION(*IMMED). In this case, the values specified or defaulted for the RESTART parameter on the second command also override the values specified or defaulted for the first command.
Example 4: Changing the IPL Source After Immediate End
PWRDWNSYS OPTION(*IMMED) RESTART(*YES) IPLSRC(A)
This command causes the system to end immediately and change the IPL source to A. When the system restarts, it IPLs on the A source.
Example 5: Allowing the Operating System to Determine the Restart Point
PWRDWNSYS OPTION(*IMMED) RESTART((*YES *SYS))
This command causes the IPL to restart at the point determined by the operating system.
Example 6: Changing the Time Out Option.
PWRDWNSYS OPTION(*IMMED) TIMOUTOPT(*MSD)
This command causes the system to end immediately. If the QPWRDWNLMT system value is exceeded, the system will dump the main storage. If the main store dump manager is configured correctly, the system will restart. Otherwise, the B900 3F10 system reference code will be displayed and the system will halt.
Example 7: Installing a New Release of the Operating System.
PWRDWNSYS RESTART(*YES) IPLSRC(*IMGCLG) IMGCLG(MYCAT1)
This command causes the system to end and then start installing a new release of the operating system from the image catalog MYCAT1.
Top |
*ESCAPE Messages
Top |