How to force FastCopy to end with a RC=04 when it cannot copy/move a member.

Document ID : KB000039048
Last Modified Date : 14/02/2018
Show Technical Document Details


FastCopy issues a warning message FCO211W when a module is not copied/moved from the source data set to the target data set because REPLACE was not specified ending with a RC=00.

As per manual CA PDSMan - FastCopy and Space Reuse User Guide states:

FastCopy processing may generate the following return codes:
0 Normal completion.
4 Completion with one or more error or warning messages being issued.

What can we do to change FastCopy's RC value to 04?.



FastCopy sets the RC=00 because IEBCOPY does, that is, FastCopy is doing what IEBCOPY does.

Coding PARM=RC4NOREP on the EXEC PGM=IEBCOPY can force a RC=04 when a module is not copied/moved, this works for both IEBCOPY and FastCopy.
This is a standard IEBCOPY feature, hence not documented explicitly in the PDSMAN documentation.

Additional Information:

More information about RC4NOREP can be found in the following IBM manual:
- DFSMSdfp Utilities
 - Chapter 3. IEBCOPY (Library Copy) Program
  - Control
   - Job Control Statements