XML GET FLAGS

This statement has the following parameter:

Parameter Description
Flags Identifier of a numeric data item to receive the current data conversion flags value after successful execution of this statement. The data item should be described with at least 9 decimal digits to avoid possible truncation of the returned value.

Description

The XML GET FLAGS statement retrieves the setting of the flags that are used for internal data conversion. Valid flag values are specified in the copy file lixmldef.cpy . The initial setting of the flags has the following flag values set: PF-Leading-Spaces, PF-Trailing-Spaces, PF-Leading-Minus, and PF-Rounded. The setting of the flags can be changed with the XML SET FLAGS statement.

Note: These flag values are 78-level constant-names. They are case insensitive and require the use of the hyphen character.

A status value is returned in the data item XML-Status of XML-data-group, which is defined in the copy file lixmldef.cpy.

Example

XML GET FLAGS
   MY-FLAGS.
IF NOT XML-OK GO TO Z.