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.

BPXCOPY<br />

*<br />

ST 10,8(13)<br />

ST 13,SAVEAREA+4<br />

LR 13,10<br />

LINK EP=BPXCOPY,PARAM=(OPT_LIST,DD_LIST),VL<br />

*<br />

L 13,SAVEAREA+4 Exit linkage<br />

L 14,12(13)<br />

LM 0,12,20(13)<br />

BR 14<br />

*<br />

SAVEAREA DS<br />

*<br />

18F<br />

OPT_LIST DC H’80’ Length of option string<br />

DC CL80’ELEMENT(DATA) HEAD(’’0001’’) TYPE(TEXT)<br />

LINK(’link1’’, ’’link2’’)’<br />

X<br />

*<br />

DD_LIST DC H’72’ Length of DDNAME list<br />

DC XL56’0’<br />

DC CL8’INDD’ Logical SYSUT1 input<br />

DC CL8’OUTDD’ Logical SYSUT2 output directory<br />

*<br />

END COPYEX<br />

4. JCL and BPXCOPY are used to copy a HFS file to another HFS file.<br />

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

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

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

//SYSUT1 DD PATH=’/u/dept/data/proginfo’<br />

//SYSUT2 DD PATH=’/u/program’<br />

//SYSTSPRT DD SYSOUT=*<br />

There will be no inheritance of file attributes, pathmode, links or symlinks. This<br />

information will be determined from the input parameter to BPXCOPY, not from<br />

the source file.<br />

906 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!