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


Example: Using OPUT with a PDSE member

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

If the user ID TURBO wants to copy a member of a PDSE into a file, TURBO enters the following TSO/E OPUT command:
OPUT WORKLOAD.TOTALS(OCT17) '/u/turbo/wkld/totals/oct17' TEXT CONVERT(YES)
This command:
  • Copies the MVS™ partitioned data set member OCT17 from the data set TURBO.WORKLOAD.TOTALS to a text file with the pathname /u/turbo/wkld/totals/oct17.
  • Converts the data using the default conversion table (from MVS code page IBM-037 to code page IBM-1047), because YES was specified. To use a different conversion table, specify its name—for example, BPXFX311—for conversion to and from the ASCII conversion table. If you do not want conversion, omit the CONVERT operand or specify CONVERT(NO).

    For more information, see Copying data: Code page conversion.

  • Sets a default mode (read-write-execute permission) if oct17 is a new file. For a new text (non-U-format data set) file, the default is octal 600:
    • owner=rw-
    • group=---
    • other=---
    The default mode for a binary load module (U-format data set) is octal 700:
    • owner=rwx
    • group=---
    • other=---
    After the file is created, you can change the permissions with the chmod command.
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