You can run the process using a JCL job or using a utility from an Enterprise Developer command prompt.
The JCL job MERGESPL.JCL is located in the cpylib sub-directory of your product installation folder. Configure the following parameters within the source code to suit your requirements, and then submit the job in the usual way:
Example:
The following JCL, scans the C:\spl-arc\ directory for sub-directories containing archived spool files. The files it finds are merged into the C:\spl-merge\Nov-18\ directory.
//MERGESPL JOB 'MERGE SPOOL ARCHIVES',CLASS=A,MSGCLASS=A //********************************************************************** //* Merge a spool archive into a merged archive //********************************************************************** //ARCHIVE EXEC PGM=MERGESPL //SYSPRINT DD SYSOUT=* //SYSOUT DD SYSOUT=* //SYSERR DD SYSOUT=* //* SYSIN or CONFIGI dataset contains the program parameters //SYSIN DD * * -------------------------------------------------------- * MERGED SPOOL HOUSEKEEPING CONFIGURATION FILE * -------------------------------------------------------- * ARCHIVE LOCATION - the archive to read * -------------------------------------------------------- * ARCHIVE LOC C:\ES_ERRORS\MERGED_ARCHIVES\SET_A\2018052611114975 * -------------------------------------------------------- * TOP LEVEL DIRECTORY TO SCAN SCAN LOC C:\spl-arc\ * -------------------------------------------------------- * MERGED ARCHIVE LOCATION - The location of the merged archive * -------------------------------------------------------- MERGE LOC C:\spl-merge\Nov-18\ /* //