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


Example: Using OGET with a sequential data set

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

If a person with the user ID TURBO enters the following command:
OGET '/u/turbo/wkld/proja/nov' WORKLOAD.PROJA.NOV CONVERT(YES)
the system:
  • Copies the text file /u/turbo/wkld/proja/nov into the sequential data set TURBO.WORKLOAD.PROJA.NOV. (The default file type is a text file.)
  • Converts the data from code page IBM-1047 to the MVS™ code page IBM-037, using the default conversion table. You can specify a table name if you do not want to use the default table. If you do not want conversion, omit the CONVERT operand.

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

If a data set with this name already exists, it is replaced. If the sequential data set does not exist, it is automatically allocated. For details on the format and size of the data set that is allocated, see the OGET command description in z/OS UNIX System Services Command Reference.

If you are moving the z/OS UNIX file permanently to an MVS data set, remove it from the file system with the rm shell command.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014