OPALE - 10.0 - KB - Duplicating a Mapping format

MAPDUPFMT

De MappingDoc
Révision datée du 3 juin 2019 à 13:35 par Alestoquoi (discussion | contributions) (Page créée avec « Note: »)

This allows you to copy all the files of a Mapping template to another library, for instance, when working with a test environment and a production one.

To copy a format into another IBM i:

  • Copy the format into a library only used for transferring files
  • Transfer the library to the other IBM i
  • Put the restored library on line and at the top of the list by typing ADDLIBLE LIB(TRANSFERT) POSITION(*FIRST)
  • Copy the format into the production library

Interactive mode: in option 3 Managing Mapping Formats

Define the following parameter by typing 3 in front of the template:

  • Destination library

MAPDUPFMT command

  • Destination Library
  • Mapping Name: Name of the mapping format to copy
  • Sequence: Type the sequence number of the mapping format to copy

Other parameter:

  • Result: Only to be used in a CL. Type a variable of one alphanumeric character. The program will send back Y (Yes) or N (No) to tell if the copy was successful or not.


Note:

Si la bibliothèque de destination n'existe pas, elle sera créée par MAPDUPFMT.