IEBCOPY Examples
The following examples illustrate some of the uses of IEBCOPY. Table 1 can be used as a quick-reference guide
to IEBCOPY examples. The numbers in the
Examplecolumn refer to examples that follow.
| Operation | Device | Comments | Example |
|---|---|---|---|
| Alter in Place | Disk | Selected members are altered in place. | Example 10: Alter Load Modules in Place |
| Convert to PDSE | Disk | Converts a partitioned data set to a PDSE. | Example 13: Convert a Partitioned Data Set to a PDSE |
| COPY | Disk | Copies a full data set from one disk volume to another. | Example 1: Copy an entire data set |
| COPY | Disk | Copies three input data sets to an existing output data set. | Example 2: Merge four data sets |
| COPY | Disk | Copy a PDSE to a PDSE. | Example 14: Copy Groups from a PDSE to a PDSE |
| COPY | Disk | Selects members from two input data sets and copies them to an existing output data set. One member replaces an identically named member that already exists on the output data set. | Example 3: Copy and Replace Selected Members of a Data Set |
| COPY | Disks | Selects, excludes, and copies members from input data sets to one output data set. Illustrates multiple copy operations. | Example 6: Multiple Copy Operations with One Output Data Set |
| COPY | Disks | Selects, excludes, and copies members from input data sets to different output data sets. Illustrates multiple copy operations. | Example 7: Multiple Copy Operations with Different Output Data Sets |
| COPY | Disks | Copy an entire PDSE to a PDSE with the replace (R) option. | Example 15: Copy Groups from a PDSE to a PDSE with Replace |
| COPY | Disks | Copy a selected group by specifying an alias. | Example 16: Copy a Selected Group from a PDSE to a PDSE |
| COPYGROUP | Disks | Copy a selected group of PDS members and their aliases to another PDS. | Example 17: Copy Selected Members and their Aliases from a PDS to a PDS |
| COPYGROUP | Disks | Copy selected members from a PDS to another PDS. | Example 18: Copy Selected Members from a PDS to a PDS |
| COPY and Compress-in-place | Disk | Copies two input data sets to an existing output data set, which is compressed in place. Copies and replaces all members of one data set. Members on the output data set have the same name as those replaced. | Example 5: Merge Data Sets and Compress the Merged Data Set |
| Copy and reblock | Disk (3380) | Copies a load library to devices with different optimal block sizes. Reblocking must take place before the member can be added to the load library. | Example 11: Replace a Load Module Using COPYMOD |
| Copy and reblock | Disk (3380) | Copies load library to devices having different block sizes. Reblocks the library to size compatible with each device to which the library will be copied, then copies to those devices. | Example 12: Reblock Load Library and Distribute It to Different Device Types |
| Load | Tape and Disk | Loads a sequential data set to disk. | Example 8: Loading a Data Set |
| Unload and Compress-in-place | Disk and Tape | Unloads a partitioned data set to a tape volume to create a compressed backup copy. | Example 4: Unload and Compress a Data Set |
| Unload, Load, and COPY | Disk and Tape | Excludes, unloads, loads, and copies selected members. | Example 9: Unload Selected Members, Load, Copy and Merge |
Examples that use disk or tape in place of actual device numbers must be changed before use. The actual device numbers depend on how your installation has defined the devices to your system.