grmbulkcopy
This copies all the record data from srcGrmId
to destGrmId
.
grmbulkcopy ?-warn var? srcGrmId destGrmId
The GRM objects must be the same type (for example, FRL, VRL, XML, HRL, HL7, X12, or EDIFACT). Data are copied from the source to the destination according to the GRM type.
- FRL/VRL/XML/HRL: Only field names common to both the input and output sides are copied. When copying each field, the subfields are matched one-to-one until one or both lists terminate.
- HL7: Input data paths
are copied directly to the output side unchanged. After the data are copied,
they are available for retrieving from the output side. When the data are
encoded into a message, only the relevant paths are used.
When copying between versions, for example, 2.1 and 2.2, a reasonable effort is made to map analogous standard fields. User-defined field IDs are mapped directly. This assumes the same field ID is used in the same segment in both the input and output definitions.
- X12: Input data paths are copied directly to the output side unchanged. After the data are copied, they are available for retrieving from the output side. When the data are encoded into a message, only the relevant paths are used.
- EDIFACT: Input data paths are copied directly to the output side unchanged. After the data are copied, they are available for retrieving from the output side. When the data are encoded into a message, only the relevant paths are used.
If you specify a warning variable name, then var, any warning messages generated during the operation are collected in the named variable.
This command returns an empty string.