End Managed System Services (ENDMGDSYS)
Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The End Managed System Services (ENDMGDSYS) command ends the managed system jobs after all currently running activities are completed.
Restriction:
- You must have *JOBCTL authority to use the end command.
- Public authority for this command is *EXCLUDE.
Top |
Parameters
Keyword | Description | Choices | Notes |
---|---|---|---|
OPTION | How to end | *CNTRLD, *IMMED | Optional, Positional 1 |
DELAY | Delay time, if *CNTRLD | 1-999999, *NOLIMIT | Optional, Positional 2 |
Top |
How to end (OPTION)
Specifies that the managed system jobs have a controlled ending or are to be ended immediately.
- *CNTRLD
- Specify that the managed system jobs end in a controlled manner.
- *IMMED
- Specify that the managed system jobs end immediately. The programs that are running do not get time to perform cleanup. This option may cause undesirable results if data has been partially updated. Therefore, this option should be used only if a controlled end was unsuccessful.
Top |
Delay time, if *CNTRLD (DELAY)
Specifies the delay time before ending is immediate.
- NOLIMIT
- The managed system jobs continue processing until the current activity processing is complete.
- delay-time
- Specify that the managed system jobs end immediately after the delay time.
Top |
Examples
Example 1: Ending Managed System Jobs
ENDMGDSYS
This command ends the managed system jobs after all currently running activities are completed.
Example 2: Ending Managed System Jobs Immediately
ENDMGDSYS OPTION(*IMMED)
This command ends the managed system jobs immediately.
Top |
Error messages
*ESCAPE Messages
- CPF3CD9
- Requested function cannot be performed at this time.
- CPF3CDA
- Registration facility repository not available for use.
- CPF81xx
- Damaged object error messages.
- CPF90FF
- *JOBCTL special authority required to do requested operation.
- CPF9872
- Program or service program &1 in library &2 ended. Reason code &3.
- MSS0059
- Internal object not found or damaged.
- MSS005B
- Storage limit exceeded.
- MSS0064
- Internal object not found or damaged.
- MSS0066
- Internal processing error occurred.
- MSS0067
- Not able to allocate internal object.
- MSS0321
- IBM Managed System Services for i not active.
Top |