When using iebcopy to copy members from one PDS to another PDS, how do I exclude members that begin with specific characters?
search cancel

When using iebcopy to copy members from one PDS to another PDS, how do I exclude members that begin with specific characters?

book

Article ID: 238652

calendar_today

Updated On:

Products

PDSMAN

Issue/Introduction

When using iebcopy to copy members from one PDS to another PDS, how do I exclude members that begin with specific characters?

Environment

Release : 7.7

Component : PDSMAN for OS/390

Resolution

This is done using the exclude statement with wildcards.

This example will exclude all members that begin with FAS and PDS:

000020 //PDSE1    EXEC PGM=IEBCOPY
 000021 //SYSPRINT DD   SYSOUT=*
 000022 //SYSUT1 DD  DISP=SHR,DSN=DATASET.COPY.FROM
 000023 //SYSUT2 DD  DISP=SHR,DSN=DATASET.COPY.TO
 000024 //SYSIN DD *
 000025  COPY INDD=SYSUT1,OUTDD=SYSUT2
 000026   EXCLUDE M=(FAS*,PDS*)
 000027 //*

********************

Depending on site settings the following may need to be added to JCL or Rules.

Add //FCOPYON DD DUMMY

or change

$IEBCOPY rule to specify FASTCOPY=Y.

Additional Information

FastCopy and Space Reuse User Guide

Chapter 2: FastCopy 

SELECT and EXCLUDE Statements

https://ftpdocs.broadcom.com/cadocs/7/d005353e.pdf