z/OS Network File System Guide and Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Creating physical sequential files

z/OS Network File System Guide and Reference
SC23-6883-00

When creating a physical sequential (PS) file, specify the dsorg(ps) attribute (if it is not the default already) with the mount command or a file creation command, such as the vi UNIX (or AIX) command.

The physical sequential data set can only allocate on a single volume with the maximum size of 65535 tracks unless defined with a characteristic allowing increased sizes, such a Large Format. See z/OS DFSMS Using Data Sets for additional information on MVS file size limits.

To create a PS file, perform the following steps:

  1. Create a local directory on your client to be used as a mount point. For example (with UNIX), enter this command:
    $ mkdir /u/smith/mnt
  2. Mount the MVS file system. For example, suppose your host is mvshost1, and you want to issue a mount on the high-level qualifier smith. You can enter this command:
    # mount mvshost1:"smith,dsorg(ps)"  /u/smith/mnt

    If you do not specify any other attributes, the MVS site defaults are used. You can use the showattr command to display the site defaults.

  3. You can use the vi UNIX command to create the new file.
    $ vi /u/smith/mnt/new

    When you save the file using vi, you have just created a new MVS PS file named SMITH.NEW.

You can get the same results by specifying dsorg(ps) in the file creation command rather than in the mount command.
# mount mvshost1:smith /u/smith/mnt
$ vi "/u/smith/mnt/new,dsorg(ps)"

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014