CL Command Reference - ENDDIRSHD

CL Command List > ENDDIRSHD Reference

Description:

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.


Examples:

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.