The ZONEIMPORT command loads an exported zone into a specified
distribution, target, or global zone.
Before importing the zone, SMP/E checks that the correct parameters
were entered and that the import request is valid. If any of the checks
fail, SMP/E issues an error message, and the ZONEIMPORT command fails.
SMP/E checks that:
- The zone name on the SET BOUNDARY command matches the receiving
zone name.
- Either the zone types of the exported and receiving zones match,
or a distribution zone is being loaded into a target zone.
- The receiving zone does not already exist in the CSI data set.
- If the receiving zone is a global zone, no other zone is defined
in the CSI.
- No cross-zone subentry from the input zone refers to a zone with
the same name as the receiving zone.
If all the validity checking is successful, the zone can be imported.
SMP/E opens the input data set, reads the zone definition record,
and checks its validity. SMP/E opens the receiving zone for update
processing. If a target or distribution zone is being imported and
its zone name does not match the name of the receiving zone, SMP/E
renames the zone being imported.
SMP/E checks for these situations:
- If the imported zone contains cross-zone subentries, SMP/E issues
warning messages.
- If SMP/E cannot open the input data set or the receiving zone,
it issues an error message, and the ZONEIMPORT command fails.
- If the zone name or type was changed, SMP/E updates the zone definition
record. If the receiving zone is not the global zone, SMP/E writes
this record to the receiving zone. SMP/E then reads the rest of the
records from the input data set and writes them to the receiving zone
using sequential reads and writes. When it reaches the record containing
hex FFFF, SMP/E has finished importing the zone. It does not write
this record to the receiving zone.
- If SMP/E reaches the end of the file before reading the hex FFFF
record, it issues an error message and the ZONEIMPORT command fails.
- If you specified the OPTIONS or RELATED operand, SMP/E either
writes the new entries to the receiving zone, if none already exist,
or replaces the existing entries with the new ones and writes the
new entries to the receiving zone.
SMP/E then closes the input data set and the receiving zone.