z/OS UNIX System Services User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Using cp to copy z/OS UNIX files into a PDS or PDSE

z/OS UNIX System Services User's Guide
SA23-2279-00

The following example uses the cp command to copy z/OS UNIX files (in the current working directory) into a PDS or a PDSE. You use the same syntax for the mv command. This example assumes the z/OS® UNIX directory does not contain subdirectories.

To drop .c suffixes before copying the files file1.c, file2.c, and file3.c in the directory dir1 into the existing PDS 'turbo.gammalib', enter the following:
cp -S d=.c  file1.c file2.c file3.c  "//'turbo.gammalib'"

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014