![]() |
| Software | Training | Consulting | Documentation | FAQ | News | Customers | Contact Us |
| Simple. Effective. Affordable. Your trusted IBM Midrange Partner for over 10 years... |
|
Chapter 13 - Merging Spooled Files with SPLTOOL With SPLTOOL you are able to merge two or more *SCS spooled files into text, HTML, PDF, or the RTF formats. Merging can be performed one of two ways. Each way is described below as well some important notes to remember when merging spooled files.
Merging Spooled Files using the "Batch" Commands The first method used to merge spooled files into one document is using the SPLTOOL "Batch" comands. These commands consist of the following:
The Batch commands will allow you to select and process one or more spooled files in one command. By default, each spooled file processed will be placed into it's own seperate file. Using the MERGE(*YES) parameter on any of these commands will instead copy all of the data into one resulting document. If you wish to specifically name the file that is created, then you should also specify the Only File Name (ONLYF) parameter as *YES, and then specify a file name on the File Name (FNAME) paramenter. If this is not done, then file will be given the name of the last file processed in the group. An example of using the command to copy all spooled files in output queue REPORTS with a user data containing the value COPY to a PDF document named "/myfiles/reports/allreports.pdf" is as follows:
Merging Spooled Files Manually It is also possible to merge two or more spooled files into one document manually using the normal single file processing comands. These commands are as follows:
In order to merge spooled files manually in this fasion you must use the MERGE parameter specifying a specific value for the first, all other spooled files, and the last spooled fie in the group. All commands must be run sequentially in the same job and the order that the spooled files are merged will be the order that the spooled files are processed. For the first spooled file, you must specify MERGE(*FIRST) on the command. For all other spooled files you must specify MERGE(*YES). Then, one final time you must call the command with the same information as the last spooled file and specify MERGE(*LAST). This will trigger the command to merge all spooled files in the group and create the resulting document. The following example will merge three spooled files into one PDF document named "/myfiles/reports/allreports.pdf":
Notice that the last command is a duplicate of the previous, but *LAST is specified for the MERGE parameter. This last command is used to send information to the SPLTOOL command to finish processing and merge all the spooled files previously listed. Important Notes about Merging Spooled Files When merging spooled files it is important to remember the following items:
<<Previous | Next>> |
|