Dec 28, 2004
Concatenation Order of ACIF Generated Files
Question:
I am creating AFPDS files using ACIF using the INDEX features as well as the Resource File creation feature. When I generate output for printing, without concatenating the three component files, the printed output looks correct. When I generate output for viewing, concatenating the three component files, I get unexpected and undesired results. I use the following JCL parameters to concatenate the 3 output files:
//GENER EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//* SYSUT2 DD SYSOUT=(T),DEST=LW0101
//SYSUT2 DD DSN=MYFILES.ACIFX.CONCAT,DISP=(NEW,CATLG,DELETE),
// DCB=(LRECL=32756,BLKSIZE=32760,RECFM=VBM,DSORG=PS),
// SPACE=(32760,(100,50))
//SYSUT1 DD DISP=SHR,DSN=MYFILES.ACIFX.OUTPUT
// DD DISP=SHR,DSN=MYFILES.ACIFX.INDEX
// DD DISP=SHR,DSN=MYFILES.ACIFX.RESLIB
//SYSPRINT DD SYSOUT=*
Am I doing something wrong?
Answer:
Unfortunately, your sequence of the component output files is incorrect. The correct order for the files is:
//SYSUT1 DD DISP=SHR,DSN=MYFILES.ACIFX.INDEX
// DD DISP=SHR,DSN=MYFILES.ACIFX.RESLIB
// DD DISP=SHR,DSN=MYFILES.ACIFX.OUTPUT
Check out the AFP ACIF reference manuals available from IBM at: http://www.printers.ibm.com/R5PSC.NSF/Web/afpm.
If you would like some additional information on AFP training or need help trying to determine the best approach, contact COPI at: 1-888-999-COPI.
You can also view the archive of past AFP related articles by clicking AFP FAQ's.