Concatenating multiple afp files into one afp files.



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Concatenating multiple afp files into one afp files.

Postby Blesson294 » Tue Mar 04, 2014 12:43 pm

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
Blesson294
 
Posts: 1
Joined: Tue Mar 04, 2014 12:02 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Concatenating multiple afp files into one afp files.

 

Re: Concatenating multiple afp files into one afp files.

Postby NicC » Tue Mar 04, 2014 3:41 pm

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).
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post