Databases Reference
In-Depth Information
CMD: This parameter is used to specify the command name. Set it to
EXPORT when exporting BAM artifacts to a file, and set it to IMPORT when
importing BAM artifacts from a file.
TYPE: This parameter is used to specify the type of a BAM artifact (for ex-
ample, DATAOBJECT, REPORT, RULE, EMS, EDS , and so on).
ALL: This parameter is used to specify the set of the artifacts. This paramet-
er is set to 0 , by default. Set it to 1 , if you want to perform an operation on
all the artifacts with the specified type.
DEPENDENCIES: This parameter is used only when the DATAOBJECT type
is specified. Set it to 1 , if you want to preserve the dependencies among the
Data Objects.
FILE: This parameter is used to specify the filename, which should be
.xml for the import or the export operations.
To merge the export files into a single file, use the APPEND, HEADER , and
FOOTER parameters as follows:
icommand -CMD EXPORT -TYPE DATAOBJECT -ALL 1 -DEPENDENCIES 1 -FILE export.xml -HEADER 1 -FOOTER 0
icommand -CMD EXPORT -TYPE REPORT -ALL 1 -FILE export.xml -APPEND 1 -HEADER 0 -FOOTER 0
icommand -CMD EXPORT -TYPE RULE -ALL 1 -FILE export.xml -APPEND 1 -HEADER 0 -FOOTER 0
icommand -CMD EXPORT -TYPE EMS -ALL 1 -FILE export.xml -APPEND 1 -HEADER 0 -FOOTER 0
icommand -CMD EXPORT -TYPE EDS -ALL 1 -FILE export.xml -APPEND 1 -HEADER 0 -FOOTER 1
The HEADER flag specifies whether the XML header information is written to the
front of the export file. Similarly, the FOOTER flag determines if the footer inform-
ation should be added to the end of the export file. As you have only one header
and footer in the export file, set the HEADER flag to 1 in the first ICommand
statement, and set the FOOTER flag to 1 in the last ICommand statement. The
APPEND flag controls whether the contents will be appended to an existing file or
not.
The previous example exports all Data Objects and reports to the export file.
However, if you only want to move your application-specific data (for example,
Search WWH ::




Custom Search