In Case 5, all relationships established with the source or target extents on the device specified by SDEVN are withdrawn.
If the device specified by SDEVN is a relationship using COPY mode, the relationship is withdrawn after the background copy operation completes.
If the device specified by SDEVN is a relationship source using NOCOPY mode, the relationship is withdrawn after the copy mode is changed to COPY and the background copy operation completes. If the device specified by SDEVN contains the target of a relationship, the relationship is withdrawn immediately. If the device specified by SDEVN is the copy source and has a relationship established with INCREMENTAL = YES or YTW, the relationship will be maintained after the background copy operation completes. The setting on the device specified by TDEVN (if specified) is ignored.
When YES is selected for the DDSW parameter, the TDEVN parameter (if specified) is ignored. The following two examples show the same command action with and without the TDEVN parameter. Both examples request the withdrawal of all relationships established with device 4202.
FCWITHDR SDEVN(X'4202') DDSW(YES) FCWITHDR SDEVN(X'4202') TDEVN(X'4203') DDSW(YES)
Since the TDEVN parameter is ignored if it is specified, both command examples cause the relationships for Dataset 1 and Dataset 2 to be withdrawn because they are on device 4202. As a result, there are no longer any relationships established for device 4202 after this command is executed.