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.

Appendix E. BPXCOPY: Copying a sequential or partitioned<br />

data set or PDSE member into an HFS file<br />

BPXCOPY<br />

Format<br />

Description<br />

This information describes the BPXCOPY program.<br />

BPXCOPY allows you to copy an HFS file, a sequential data set, or a partitioned<br />

data set or a PDSE member into a hierarchical file system (HFS) file.<br />

JCL:<br />

EXEC PGM=BPXCOPY,PARM='ELEMENT HEADID LINK TYPE PATHMODE SYMLINK<br />

SYMPATH APF | NOAPF PROGCTL | NOPROGCTL SHAREAS | N<strong>OS</strong>HAREAS UID GID<br />

SHARELIB | N<strong>OS</strong>HARELIB<br />

BPXCOPY can copy an HFS file, a sequential data set, or partitioned data set or<br />

PDSE member into an HFS file. You can invoke BPXCOPY in several ways:<br />

v From JCL using EXEC PGM=BPXCOPY. BPXCOPY does not need the Terminal<br />

Monitor Program (TMP) to be started when it is invoked from JCL.<br />

v From LINK, XCTL, ATTACH, a TSO/E CALL command with the asis option, or by<br />

a CALL after a LOAD.<br />

BPXCOPY provides similar function to the OPUT command, but differs from OPUT<br />

in these ways:<br />

v There is no code page conversion available.<br />

v The specified filename cannot be longer than 8 characters.<br />

v The pathname of the directory specified cannot be longer than 255 characters.<br />

v You can define hard links to the file.<br />

v You can define symbolic links to the file.<br />

v You can set the permission access bits of the file.<br />

v You can set the extended attributes of the file.<br />

v You can set the owning UID and GID of the file.<br />

v Do not specify PATHOPTS when using the TSO/E ALLOCATE command or a<br />

JCL DD statement. It will be ignored.<br />

A DD statement allocates a data set or file and sets up a ddname. For BPXCOPY:<br />

v The input ddname can specify a MVS data set (either a sequential data set or a<br />

member of a partioned data set or PDSE) or the input ddname can be the full<br />

pathname of the HFS file. When you invoke BPXCOPY from JCL, you must use<br />

SYSUT1 as the input ddname. If BPXCOPY is invoked from LINK, XCTL, or<br />

ATTACH, a TSO/E CALL command with the asis option, or by a call after a<br />

LOAD, you can specify an alternative ddname.<br />

v The output ddname is associated with the pathname of the directory in which the<br />

HFS file resides. The absolute pathname for the HFS file is this pathname<br />

combined with the name specified with the ELEMENT parameter. When you<br />

invoke BPXCOPY from JCL, you must use SYSUT2 as the output ddname. If<br />

BPXCOPY is invoked from LINK, XCTL, or ATTACH, a TSO/E CALL command<br />

with the asis option, or by a CALL after a LOAD, you can specify an alternative<br />

ddname.<br />

© Copyright IBM Corp. 1996, 2007 901

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

Saved successfully!

Ooh no, something went wrong!