Page 1 of 1

Concatenating multiple afp files into one afp files.

PostPosted: Tue Mar 04, 2014 12:43 pm
by Blesson294
Hello,

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   


Help me in resolving the issue

Re: Concatenating multiple afp files into one afp files.

PostPosted: Tue Mar 04, 2014 3:41 pm
by NicC
Where is your concatenation? You appear to be copying - if that is what AOPBATCH does - one file into another file. I know you are MODding but you are MODding to an empty file so your MERGE.SAMPLE.PDF consists only of the one file. what does your documentation for AOPBATCH say?

BTW - AOPBATCH is not a 'jcl program' it is simply a program (which you happen to be running in batch).