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


Example: Using OGETX with a PDSE

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

User TURBO wants to copy the directory /u/turbo/gammalib into the partitioned data set TURBO.GAMMALIB. He issues the command:
OGETX /u/turbo/gammalib GAMMALIB LC SUFFIX
This command:
  • Copies into the partitioned data set all the files in the directory that meet MVS™ member name requirements. Because the data set name is not enclosed in single quotation marks, the system automatically supplies the user's user ID (TURBO) as a high-level qualifier.
  • Copies from files with lowercase, uppercase, or mixed-case names.
  • Removes any suffixes to the file names. (After the suffix is deleted, if more than one file has the same name, each subsequent file that is copied overlays a file with the same name that was copied previously.)
The files in the directory become partitioned data set members:
File name Member name
/u/turbo/gammalib/pgm1.c TURBO.GAMMALIB(PGM1)
/u/turbo/gammalib/pgm2.c TURBO.GAMMALIB(PGM2)
/u/turbo/gammalib/list.prg TURBO.GAMMALIB(LIST)

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014