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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Return codes<br />

Examples<br />

0 Processing successful<br />

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

1. JCL and BPXCOPY are used to copy a PDSE member into a directory.<br />

Known:<br />

v The name of the PDSE member is REGEREX.<br />

v The directory name is /u/turbo/llib.<br />

v Output messages are to be directed to SYSOUT.<br />

v Type of data: binary.<br />

//TEST JOB MSGLEVEL=(1,1)<br />

//STEP EXEC PGM=BPXCOPY,<br />

// PARM=’ELEMENT(REGEREX) LINK("../erex") TYPE(BINARY)’<br />

//SYSUT1 DD DSN=TURBO.LOADLIB(REGEREX),DISP=SHR<br />

//SYSUT2 DD PATH=’/u/turbo/llib’<br />

//SYSTSPRT DD SYSOUT=*<br />

The LINK name is concatenated with the directory name from SYSUT2, yielding<br />

/u/turbo/llib/../erex. The file system treats this as /u/turbo/erex, making this an<br />

alias for /u/turbo/llib/REGEREX.<br />

2. JCL and BPXCOPY are used to copy a PDS member into a directory.<br />

Known:<br />

v The name of the PDS member is TABLE1.<br />

v The directory name is /u/carbon/data.<br />

v Output messages are to be directed to SYSOUT.<br />

v Type of data: text.<br />

//TEST JOB MSGLEVEL=(1,1)<br />

//STEP EXEC PGM=BPXCOPY,<br />

// PARM=’ELEMENT(TABLE1) TYPE(TEXT) PATHMODE(0,7,6,4)’<br />

//SYSUT1 DD DSN=CARBON.DATA(TABLE1),DISP=SHR<br />

//SYSUT2 DD PATH=’/u/carbon/data’<br />

//SYSTSPRT DD SYSOUT=*<br />

This results in a file /u/carbon/data/TABLE1 with read, write, and execute<br />

authority for the user; read and write authority for the group; and read authority<br />

for other users.<br />

3. A member of an MVS partitioned data set is copied to an HFS file from a<br />

program using the LINK macro.<br />

Known:<br />

v The ddname of the source: INDD. INDD can be any sequential data set and<br />

is defined by an ALLOCATE command issued outside the program.<br />

v The ddname of the directory to copy into: OUTDD. OUTDD can be any<br />

directory name and is defined by an ALLOCATE command issued outside the<br />

program.<br />

v Three link names—DATA, link1, and link2—for the target file.<br />

v Output messages are directed to SYSOUT.<br />

v Type of data: text.<br />

*<br />

COPYEX CSECT<br />

STM 14,12,12(13) Entry linkage<br />

LR 12,15<br />

USING COPYEX,12<br />

LA 10,SAVEAREA<br />

BPXCOPY<br />

Appendix E. BPXCOPY: Copying a sequential or partitioned data set or PDSE member into an HFS file 905

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

Saved successfully!

Ooh no, something went wrong!