OPALE - 10.0 - KB - Duplicating a Mapping format

MAPDUPFMT

De MappingDoc
Révision datée du 3 juin 2019 à 13:30 par Alestoquoi (discussion | contributions) (Page créée avec « ''Interactive mode: in option 3 Managing Mapping Formats''' »)

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'

En tapant 3 devant le format, renseigner le paramètre suivant :

  • Bibliothèque de destination

Commande MAPDUPFMT

  • Destination Library
  • Mapping Name : Nom du format mapping à copier
  • Séquence : Renseigner le numéro de la séquence du format mapping à copier

Autre paramètre :

  • Résultat : A utiliser uniquement dans un CL. Déclarer une variable d'une longueur d'un caractère alphanumérique. Le programme retourne Y (Yes) ou N (No) pour vous informer que la copie s'est bien déroulée ou non.


Remarque :

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