OPALE - 10.0 - KB - Duplicating a Mapping format
MAPDUPFMT
De MappingDoc
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:
If the destination library doesn't exist, it will be created by MAPDUPFMT.