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

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

book

Article ID: 39048

calendar_today

Updated On:

Products

PDSMAN

Issue/Introduction

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 but ends with RC=00.

As per manual 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 be done to change FastCopy's RC value to 04?

Environment

Release: PDSMAN PDS Library Management 7.7

Resolution

FastCopy sets the RC=00 because 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 why it is 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