Release : All Supported Releases
Component : Endevor
BSTXCOPY is an Endevor utility that performs the same functions as the Endevor processor utility BSTCOPY. However, you can use BSTXCOPY to perform these functions outside of a Endevor processor. BSTCOPY can only be executed within an Endevor processor.
BSTXCOPY can be used to copy between PDS load libraries and PDSE load libraries, from PDSE to PDSE, and from PDSE back to PDS. BSTXCOPY can copy aliases but the original loadlib member must be present in the From library.
The following JCL shows how to execute this utility. The first library in the STEPLIB contains the Endevor site-specific modules (C1DEFLTS, ENDICNFG, and so on):
//COPYEX EXEC PGM=NDVRC1,PARM='CONCALL,DDN:CONLIB,BSTXCOPY'
// INCLUDE MEMBER=SCMM@LIB
//SYSPRINT DD SYSOUT=*
//SYSUT3 DD UNIT=VIO,SPACE=(CYL,(1,2))
//SYSUT4 DD UNIT=VIO,SPACE=(CYL,(1,2))
//IND1 DD DISP=(OLD,PASS),DSN=YOUR.PDS.LOADLIB (PDS)
//IND2 DD DISP=(OLD,PASS),DSN=YOUR.PDS.LOADLIB (PDS)
//OUTDD DD DISP=(OLD,PASS),DSN=YOUR.NEW.PDSE.LOADLIB (PDSE)
//SYSIN DD *
COPY INDD=((IND1,R)),OUTDD=OUTDD
COPY INDD=((IND2,R)),OUTDD=OUTDD
Note: To copy a specific member, the following syntax can be used.
//SYSIN DD *
COPY INDD=IND1,OUTDD=OUTDD
SELECT MEMBER=FARCOB01
For back-out members, turn on hex mode and use 'FE' for the first character so that the member name is recognized.
//SYSIN DD *
66EEECD4444CC45444444444444
11282950000440C000000000000
---------------------------
COPY INDD=IND1,OUTDD=OUTDD
4CDDE4CDCC7CDCF6DEECC7DEECC
0367809544E9541B64344E64344
---------------------------
SELECT MEMBER=ÚMNZB3O7
4ECDCCE4DCDCCD7FDDECFDF4444
02535330454259EE45923670000
For more information about the input syntax and restrictions, see Using Processor Utilities.