OPALE - 10.0 - Usage - Qualifying a spooled file
MAPQUALSPL
This command allows you to qualify a spooled file after sorting by adding a series of codes in the spooled file itself. It is thus only used after the
MAPSORTSPL or MAPSORTPAG command used with the parameter CREATE set to *NO (spooled files aren't created after sorting).
It allows you to do batch sorting (splitting a spooled file based on the number of pages for every break). For instance, an invoice spooled file
composed of multiple invoices will be split by creating an output spooled file with invoices containing 1 page, another output spooled file with invoices containing 2 pages.
It allows you to insert the page number in the break (e.g. the page numbers of an invoice),
the total number of pages in the break (page number of an invoice), the type of page (1 for the first page of the invoice, 2 for the second page all the way to the second to last page, and 3 for the last page),
and finally the KERN codes for automatic folding.
In the template, all you need to do is add a vertical line conditioned according to the value of the KERN code (the line is printed if the code value is 1).
Code Structure :
Positions 1 to 6 - Increment of the page number inside the break.
Positions 7 to 12 - Total number of pages in the break.
Example : 1/ 3 2/ 3 3/ 3
Position 13 - Break code
- 1: Page "heading" (first) - 2: Page "next" (middle) - 3: Page "total" (last)
Positions 14 to 18 - Code of Kern-type sealing (Contains 0 or 1 depending on the norm)
- PK Parity check (1 if the total of the following 4 is an even number, else it is 0) - BS4, BS3, BS1: Decrement binary value from 7 (111) to 1 (001) - DGR Sealing code (1 = sealing)
Positions 19 to 24 - Increment of the break number (1st client, 2nd client....)
Positions 25 to 30 - Number of breaks
Example for an invoice with 4 pages:
page 1: 1 4111111
page 2: 2 4211100
page 3: 3 4211010
page 4: 4 4301000
CAUTION: the NAME and SIZE parameters have to be exactly the same as in the MAPSORTSPL command
The LINE and COL parameters allow you to insert codes anywhere in the spooled file (choose a blank spot or the spooled file data will be overwritten).
You have to define the following parameters:
- Name of DataBase for sort
- Line Number: number of the line where the codes have to be inserted
- Column Number: number of the column where the codes have to be inserted
- Create spool file
- Spoolfile Name to Create
- Outq
- Outq Library
- Spool Holder
- Control sort splfname
- Length of the input spoolfile
- Height of the input spoolfile
- Overflow of the input spoolfile
- Modulo
- Use Duplex
Other parameters:
- Name of the spool file
- Number of the spool file
- Name of the JOB
- Number of the JOB
- Name of 10 characters Max