Rational Developer for System z
Enterprise PL/I for z/OS, Version 4.2, Language Reference

XMLCHAR

Example of using XMLCHAR

The XMLCHAR built-in function dumps data from a structure as XML into a buffer. It returns the number of bytes written to the buffer. If the buffer is too small, the structure data is truncated and the number of bytes needed for the buffer to contain the structure is returned.

Read syntax diagramSkip visual syntax diagram>>-XMLCHAR--(--x--,--p--,--n--)--------------------------------><
 
x
Structure-reference.

The structure-reference x must conform to the following rules:

p
Address of target buffer.
n
Length of target buffer.

The buffer length must have a computational type and will be converted to FIXED BINARY(31,0).

It must be nonnegative.

When the XML output is created, it follows these rules:

Note:
By default the names of the variables in the generated XML output are all in upper case. The CASE(ASIS) suboption of the XML compiler option can be used to specify that the names appear in the case in which they were declared.

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)