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


Using cp to copy a sequential data or PDS member into a z/OS UNIX file

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

The following examples use the cp command to copy a sequential data set or PDS member into a z/OS UNIX file. You use the same syntax for the mv command.

To copy an MVS™ sequential dataset to a z/OS UNIX file (in the current working directory):
cp   "//'posix.mylogfile'"  mylogfile
To copy an MVS PDS member to a z/OS UNIX file (in the current working directory):
cp   "//'posix.cpmvtest(myfile)'"  myunixfile

If there is an existing z/OS UNIX file with the path name that you specify on the command, it is automatically replaced and the mode of the file is not changed. The directories specified in the path name must already exist. This command creates a new file, but it does not create a new directory.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014