grmbulkcopy

This command copies record data from the source to the destination.

For example:

 grmbulkcopy ?-warn var? destGrmId srcGrmId

This copies all of the record data from srcGrmId to destGrmId. The GRM objects must be the same type. For example, FRL, VRL, HRL, XML, HL7, X12, NCPDP, or UN/EDIFACT.

Data are copied from the source to the destination according to these types:

  • UN/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.

  • NCPDP

    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.

  • FRL

    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.

  • VRL

    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.

  • 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.

  • XML

    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.

    If a warning variable name is specified, then any warning messages that are generated during the operation are collected in the named variable.

    This command returns an empty string.