Copy a Set of Files to an Existing zOS Partitioned Data Set
Copy a Set of Files to an Existing z/OS Partitioned Data Set
These examples copy (in text mode, and using the * wildcard) multiple files with one copy command to an already allocated partitioned data set (PDS) on a z/OS system.
The file names used to create the member names in the destination PDS are the source file names.
However, note that file names on UNIX and Windows file systems often have a file extension as part of their name. A file extension is a suffix separated from the file's base name with a period (for example, BASE.TXT). The period in the file extension is not a valid character in PDS member names, so UDM must be instructed to remove the file extensions before copying them into the PDS.
The truncext attribute is used to instruct UDM to remove file name extensions from the source file prior to using the name as the destination member name.
This example assumes that the remote UNIX directory /opt/app/data contains the following list of files:
- data001.txt
- data002.txt
- data003.txt
- data004.pr
- data005.pr
The result of the copy operation will create the following members in PDS APP.DATA.PDS:
- DATA001
- DATA002
- DATA003
DD File System
DSN File System
Components
Universal Data Mover Manager for z/OS