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


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

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

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

To copy the z/OS UNIX file myunixfile (from the current working directory) to the MVS™ PDS member myfile within the PDS called 'posix.cpmvtest':
cp  myunixfile  "//'posix.cpmvtest(myfile)'"
To copy the z/OS UNIX file file1 to a new, fully-qualified sequential data set 'turbo.gammalib' to be created with specific attributes:
cp -P "RECFM=U,space=(500,100)" file1 "//'turbo.gammalib'"
To copy the z/OS UNIX file f1 to a fully-qualified sequential data set 'turbo.gammalib' and treat it as binary:
cp -F bin f1 "//'turbo.gammalib'"

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014