Please enable JavaScript to view this site.

The LABEL command is used for XML formatted data records. This command allows you to specify a text string that can be used as a tag (label) within the XML structure.

Syntax

LABEL <target_datastore>.<tag_name> '<tag_label>'

 

Keyword and Parameter Descriptions

<tag_name>  Name of the XML attribute tag as it exists in the document type definition (DTD).

<tag_label>  Specifies the label text that will replace the existing attribute tag in the XML DTD.

Example

Within an XML DTD, an attribute list (ATTLIST) has a tag of LEAD_DT as follows:

<!ATTLIST DATETIME

         LEAD_DT        CDATA     #REQUIRED

>

Issue the LABEL command to change the attribute tag of LEAD_DT to ‘qualifier’ before the XML record is written to an output datastore.

LABEL LEAD_DT 'qualifier';