SET CURRENT IMPLICIT XMLPARSE OPTION

The SET CURRENT IMPLICIT XMLPARSE OPTION statement changes the value of the CURRENT IMPLICIT XMLPARSE OPTION special register.

Invocation

This statement can be embedded in an application program or issued interactively. It is an executable statement that can be dynamically prepared.

Authorization

If a global variable is referenced in the statement, the privileges held by the authorization ID of the statement must include at least one of the following:

  • For the global variable identified in the statement,
    • The READ privilege on the global variable, and
    • The system authority *EXECUTE on the library containing the global variable
  • Database administrator authority

Syntax

Read syntax diagramSkip visual syntax diagramSET CURRENT IMPLICIT XMLPARSE OPTION = STRIP WHITESPACEPRESERVE WHITESPACEvariablestring-constant

Description

STRIP WHITESPACE
Whitespace is removed on implicit XMLPARSE.
PRESERVE WHITESPACE
Whitespace is not removed on implicit XMLPARSE.
variable
Specifies a variable which contains the value for the CURRENT IMPLICIT XMLPARSE OPTION. The content is folded to uppercase.

The variable:

  • Must be a character-string or Unicode graphic-string variable.
  • Must not be followed by an indicator variable.
  • Must contain one of the two implicit XMLPARSE options.
  • Must be padded on the right with blanks if the variable is fixed length.
string-constant
A character constant that contains a specification of the implicit XMLPARSE option. The value must be a left justified string that is either 'STRIP WHITESPACE' or 'PRESERVE WHITESPACE' with exactly one blank character between the keywords. The content is folded to uppercase.

Notes

Transaction considerations: The SET CURRENT IMPLICIT XMLPARSE OPTION statement is not a committable operation. ROLLBACK has no effect on the CURRENT IMPLICIT XMLPARSE OPTION.

Initial CURRENT IMPLICIT XMLPARSE OPTION: The initial value of CURRENT IMPLICIT XMLPARSE OPTION is 'STRIP WHITESPACE'.

Both static and dynamic statements are affected by this special register.

The CURRENT IMPLICIT XMLPARSE OPTION scope is the connection.

Example

Set the value of the CURRENT IMPLICIT XMLPARSE OPTION special register to 'PRESERVE WHITESPACE'.

  SET CURRENT IMPLICIT XMLPARSE OPTION = PRESERVE WHITESPACE