16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

OGET<br />

Return codes<br />

Examples<br />

4. An executable file copied into an MVS data set is not executable under MVS,<br />

because some required directory information is lost during the copy to the<br />

partitioned data set.<br />

5. Data sets with spanned records are not allowed.<br />

6. If you are using a DBCS-supported terminal, the target MVS data set should be<br />

defined or defaulted to variable record format. The record length of the data set<br />

must be greater than or equal to the longest line in the z/<strong>OS</strong> <strong>UNIX</strong> file system<br />

file. (OGET can determine how long the longest line is if you ask it to allocate<br />

the target data set.)<br />

7. OGET cannot be used to copy a load module out of a partitioned data set and<br />

into a file system. You have to use a binder to ″flatten″ the load module. For<br />

more information, see ″Copying an Executable Module from a PDS″ in z/<strong>OS</strong><br />

<strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> User’s Guide<br />

0 Processing successful.<br />

12 Processing unsuccessful. An error message has been issued.<br />

1. The following command copies a text file to an MVS sequential data set,<br />

converting from code page 1047 to code page IBM-037 using the default table<br />

BPXFX000. (BPXFX000 is an alias; when shipped by IBM, it points to<br />

BPXFX111.)<br />

v The pathname of the file is /u/admin/employee/data.<br />

v The unqualified name of the sequential data set is EMPLOYEE.DATA.<br />

OGET ’/u/admin/employee/data’ EMPLOYEE.DATA TEXT CONVERT(YES)<br />

2. The following command copies a text file to an MVS sequential data set,<br />

converting from code page 1047 to code page IBM-037 using conversion table<br />

BPXFX111 in the user’s library data set.<br />

v The pathname of the file is /u/admin/employee/data.<br />

v The fully qualified name of the sequential data set is<br />

IBMUSR.EMPLOYEE.DATA.<br />

OGET ’/u/admin/employee/data’ ’IBMUSR.EMPLOYEE.DATA’<br />

CONVERT(’MY.LOADLIB(BPXFX111)’)<br />

OGETX — Copy z/<strong>OS</strong> <strong>UNIX</strong> files from a directory to an MVS PDS or<br />

PDSE<br />

Format<br />

Description<br />

OGETX hfs_directory | hfs_file_name<br />

mvs_PDS_name | mvs_data_set_name(member_name)<br />

ASIS<br />

BINARY | TEXT<br />

CONVERT(character_conversion_table | YES | NO)<br />

LC<br />

QUIET<br />

SUFFIX(suffix)<br />

You can use the OGETX command to:<br />

v Copy files in a z/<strong>OS</strong> <strong>UNIX</strong> system directory to a member of an partitioned data<br />

set (PDS) or PDSE<br />

848 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!