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


Transferring files using the Network File System feature

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

Using the Network File System feature, you can edit or browse a z/OS UNIX file directly from your workstation. For example, if you want to copy a file to a workstation file, you do not need to move it to an MVS™ data set first. Here is an example showing the steps involved:

  1. Log on to the host using mvslogin.
  2. Mount the directory /u/usr1/a/b at the workstation with the command:
     mount mvshost:"/u/usr1/a/b" /x/y
  3. Copy the file /u/usr1/a/b/c to the workstation file /mycopy/c with the command:
    cp /x/y/c /mycopy/c
Using the Network File System feature from your workstation, you can copy a workstation file to z/OS UNIXfile without having to move it to an MVS data set first. This example assumes that you have run your mvslogin and mounted the directory /u/usr1/pgma/b at the workstation under the pathname /mypgma/b. You copy the workstation file /proj2/modc to the file /u/usr1/pgma/b/modc with the command:
cp /proj2/modc /mypgma/b/modc

Suppose you have an executable that you compiled and linked ont a workstation, and you want to store it in an MVS data set but run it from the workstation. You copy the executable to the mounted z/OS UNIX file in binary format. Later, when you want to run the program from the workstation, you use NFS to mount the directory in binary format, and then run the program from the mounted z/OS UNIX file system.

For more information about working with NFS files on your workstation, see DFSMS: Network File System User's Guide.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014