OPALE - 10.0 - Usage - Qualifying a spooled file

MAPQUALSPL

De MappingDoc
Révision datée du 27 mai 2019 à 14:02 par Alestoquoi (discussion | contributions) (Page créée avec « page 3: 3 4211010 »)

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


ATTENTION : Les paramètres NAME et SIZE doivent être rigoureusement les mêmes que dans la commande MAPSORTSPL

Les paramètres LINE et COL permettent d'insérer les codes à l'endroit désiré dans le spool (Choisir un emplacement vierge sinon les données du spool seront écrasées).

Les paramètres à renseigner sont les suivants :

  • Name of DataBase for sort
  • Line Number : numéro de la ligne où insérer les codes
  • Column Number : numéro de la colonne où insérer les codes
  • 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

Autres paramètres

  • Name of the spool file
  • Number of the spool file
  • Name of the JOB
  • Number of the JOB
  • Name of 10 characters Max