In the following JCL the user is attempting to combine two PDS files SYS1.PROCLIB and SYS2.PROCLIB into SYS3.PROCLIB. But the File Master Plus batch copy job ends with RC=04. In the job output is error message:
*** CAWA2515E Load modules may not be copied with CAWABATC.
//COMPARE EXEC PGM=CAWABATC
//STEPLIB DD DSN=FILEMST.CDBILOAD,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//*
//INFILE DD DSN=SYS1.PROCLIB,DISP=SHR
// DD DSN=SYS2.PROCLIB,DISP=SHR
//OUTFILE DD DSN=SYS3.PROCLIB,
// UNIT=SYSDA,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(450,450,1000),RLSE),
// DCB=DSORG=PO
//SYSIN DD *
COPY INFILE(INFILE),
OUTFILE(OUTFILE)
/*
//
...
*** CAWA2100I DDNAME INFILE+0 opened for DSN=SYS1.PROCLIB
File is NonVSAM LRECL=80,BLKSIZE=6320,RECFM=FB,Mode=PDS
*** CAWA2100I DDNAME INFILE+1 opened for DSN=SYS2.PROCLIB
File is NonVSAM LRECL=80,BLKSIZE=6320,RECFM=FB,Mode=PDS
*** CAWA2100I DDNAME OUTFILE opened for DSN=SYS3.PROCLIB
File is NonVSAM LRECL=0,BLKSIZE=0,RECFM=U,Mode=PDS
*** CAWA2515E Load modules may not be copied with CAWABATC.
*** CAWA2550I COPY completed RC set to 4 High RC = 4
CAWA2000I Utility ending, Max CC=4
The CAWA2515E error message is due the following JCL statement
DCB=DSORG=PO
To resolve the problem code your OUTFILE DD DCB= as follows
//OUTPUT DD DSN= SYS3.PROCLIB,
// UNIT=SYSDA,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(450,450,100),RLSE),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=3120,DSORG=PO)