Am facing a problem in concatenating multiple afp files to one single file using the jcl prgram AOPBATCH. Below is the code which I have tried out but it creating a blank output file
//AFP2AFP1 JOB
//AFPCNCAT PROC AFPFILE=
//TRANSFRM EXEC PGM=AOPBATCH,
// PARM='/afp2afp -j "form-definition=XPRESS"
// -o //DD:AFPOUT //DD:INPUT'
//INPUT DD DISP=SHR,DSN=&AFPFILE
//AFPOUT DD DISP=MOD,
// DSN=#125567.MERGE.SAMPLE.PDF
//STDOUT DD SYSOUT=*
//STDERR DD SYSOUT=*
// PEND
//*
//ALLOC EXEC PGM=IEFBR14
//AFPOUT DD DSN=#125567.MERGE.SAMPLE.PDF,
// DCB=(RECFM=VBM,LRECL=32756,BLKSIZE=32760),
// SPACE=(CYL,(30,5)),DISP=(NEW,CATLG,DELETE)
//PRINT1 EXEC AFPCNCAT,AFPFILE=*.VALXRX01.ADS.LTR.G0116V00
//AFPCNCAT PROC AFPFILE=
//TRANSFRM EXEC PGM=AOPBATCH,
// PARM='/afp2afp -j "form-definition=XPRESS"
// -o //DD:AFPOUT //DD:INPUT'
//INPUT DD DISP=SHR,DSN=&AFPFILE
//AFPOUT DD DISP=MOD,
// DSN=#125567.MERGE.SAMPLE.PDF
//STDOUT DD SYSOUT=*
//STDERR DD SYSOUT=*
// PEND
//*
//ALLOC EXEC PGM=IEFBR14
//AFPOUT DD DSN=#125567.MERGE.SAMPLE.PDF,
// DCB=(RECFM=VBM,LRECL=32756,BLKSIZE=32760),
// SPACE=(CYL,(30,5)),DISP=(NEW,CATLG,DELETE)
//PRINT1 EXEC AFPCNCAT,AFPFILE=*.VALXRX01.ADS.LTR.G0116V00
Help me in resolving the issue