I tried to copy two input PDS files to one output PDS file and received message "CAWA2515E Load modules may not be copied with CAWABATC." .

Document ID : KB000031354
Last Modified Date : 14/02/2018
Show Technical Document Details

In the following JCL the user is attempting to combine two PDS files SYS1.PROCLIB and SYS2.PROCLIB into SYS3.PROCLIB. But the CA 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=FMMVS90.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.PROCRNV
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)