OPALE - 10.0 - Usage - Merging two spooled files

MAPMOVDATA

De MappingDoc
Révision datée du 24 mai 2019 à 12:37 par Alestoquoi (discussion | contributions) (Page créée avec « * Line Number: line number from which we start copying * Name of DataBase for sort: name of database (same one as for MAPSORTSPL) * Spool file number to copy: number of th... »)

This command allows you to copy the data of a spooled file onto the pages of another spooled file. It can be used starting with two spooled files coming from queries: one spooled file for the invoice header and another one with the items listed. MAPMOVDATA should be used after MAPSORTSPL. You will need to add the two spooled files to the same database, MAPMOVDATA will then change this database and add the first spooled file's data at the end of every page of the second spooled file whenever they have the same sorting criteria.


Example:

- the first spooled file compiles different invoices and the purchased items

- the second spooled file contains invoice headers

- both spooled files are sorted by invoice number using MAPSORTSPL

- MAPMOVDATA will add the purchased items underneath the corresponding headers.

- To start printing the spooled files, use command MAPSORTSPL with parameter MBROPT in the *NONE section

  • Line Number: line number from which we start copying
  • Name of DataBase for sort: name of database (same one as for MAPSORTSPL)
  • Spool file number to copy: number of the spooled file to copy at the end of the other one (matches the number of command MAPSORTSPL)
  • Spool file number to update: number of the spooled file to change
  • Length of the input spoolfile: PRTF length
  • Delete copy spool file: the copied spooled file pages are deleted