Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The End Directory Shadowing (ENDDIRSHD) command ends the directory shadow controlling job in the system work subsystem (QSYSWRK).
Any active collector or supplier jobs running are allowed to complete. No new collector jobs are started. Supplier jobs are prevented from starting if a collector system requests data through directory shadowing. The Start Directory Shadowing (STRDIRSHD) command can be used to re-start directory shadowing.
Restriction: You must have job control (*JOBCTL) authority to use this command.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
OPTION | How to end | *CNTRLD, *IMMED | Optional, Positional 1 |
DELAY | Controlled end delay time | 1-999999, 30 | Optional, Positional 2 |
Top |
Specifies whether the directory shadow controlling job is ended in a controlled manner or immediately.
Note: Using the *IMMED option can cause unexpected results if data has been only partially updated.
This is a required parameter.
Top |
Specifies the amount of time (in seconds) allowed for the directory shadow controlling job to complete its cleanup processing during a controlled end. This parameter is not valid if OPTION(*IMMED) is specified. If the cleanup is not complete before the end of the delay time, the directory shadow controlling job is immediately ended.
This is a required parameter.
Top |
Example 1: Ending Directory Shadowing in a Controlled Manner
ENDDIRSHD OPTION(*CNTRLD) DELAY(60)
The directory shadow controlling job is ended in the system work subsystem in a controlled manner and will have 60 seconds to complete its end-of-job processing.
Example 2: Ending Directory Shadowing Immediately
ENDDIRSHD OPTION(*IMMED)
The directory shadow controlling job is ended in the system work subsystem immediately. The directory shadow controlling job does not perform end-of-job processing.
Top |
Top |