Please enable JavaScript to view this site.

From version 6.2.64 - This command will allow you to merge multiple spool files with the same Spool File Name in a specified Output Queue.

Notes:

You may only merge Printer Device Type *SCS spool files with a Single Byte character set.

Spool files are processed in chronological order and all attributes (apart from those overridden by the command) will be taken from the first spool file processed.

This command can be found on the Cobwebb Tools Menu - Option 8. Alternatively, with library CPPD in your Library List, enter MRGSPLFS on a command line and press F4=Prompt.

Command Parameters

From - Output Queue (FOUTQ)

The name of the Output Queue you wish to merge the spool files from.

From - Library (FOUTQLIB)

The name of the Library where the From Output Queue resides.

From - Spool File Name (FFILE)

The Spool File Name used to select the spool files to merge.    

From - User Data (FUSRDTA)

The User specified data used to select the spool files. If you leave the default of *ALL then the User Data of the selected spool files will not be checked, otherwise you may enter the User Data that you wish to be used for selecting the spool files. Note: This must be an exact match including case.      

From - User Name (FUSRNAM)

The User Name used to select the spool files. If you leave the default of *ALL then the User Name of the selected spool files will not be checked, otherwise you may enter the User ID that you wish to be used for selecting the spool files.  

From - Status (FSTATUS)

The spool file status used to select the spool files. If you leave the default of *ALL then the status of the selected spool files will not be checked, otherwise you may enter one of the other valid options *READY, *HELD or *SAVED.

From - Update Status  (FTIDY)                                              

The spool file status to be applied to all of the selected From spool files. If you leave the default of *HLD then the status of the selected From spool files will be Held (*HLD), otherwise you may enter one of the other valid options *RLS or *DLT which will either change the status to Ready (*RDY) or Delete the spool file respectively.

To - Output Queue (TOUTQ)

The name of the Output Queue where you wish the generated spool file to be written. If you wish the spool file to be generated in the same output queue then you may use *FROMOUTQ.

To - Library (TOUTQLIB)

The name of the Library where the To Output Queue resides. If you wish to use the same library as for the From Output Queue then you may use *FROMLIB.

To - Spool File Name (TFILE)

The Spool File Name you wish to be given to the generated spool file. If you wish to use the same file name as the original spool files you may use *FROMFILE.    

To - User Data (TUSRDTA)

The User specified data to be assigned to the generated spool file. You may either enter your new User Data here. If you entered a value for the From User Data [i.e. not *ALL] then you may specify *FROMUSRD to apply the same user data as was on the original spool file.

To - Hold Status (TSTATUS)

If you wish the generated spool file to be Held on the Output Queue then specify *YES otherwise enter *NO.

Merge after days old (DAYS)

This option will allow you to specify how old a spool file needs to be before being included in the merge. Say you want to merge all invoices from the previous days output you would enter a 1 here and this would pick up any matching spool file of one day or older. Entering a 0 will not check the age of the spool file. If you leave the default of 999 then nothing will happen unless you have spool files more than 999 days old.