allowmissing (default no)

For the situation where the XML document does not have sufficient XML elements or attributes for the subfields of an RPG data structure, you can use the allowmissing option to indicate whether this is considered an error. XML data is considered to be missing in the following circumstances:

If expected XML data is not found, and 'allowmissing=yes' is not specified, the operation will fail with status 00353 (XML does not match RPG variable).

Tip: The countprefix option can also be used to handle the situation where the XML document might not have sufficient XML data for every subfield in the data structure.

To allow fewer array elements for the array specified on the XML-INTO operation, it is not necessary to specify 'allowmissing=yes'. If the XML document contains fewer elements than the RPG array, the operation will not fail. The "Number of XML Elements" subfield in positions 372 - 379 of the PSDS can be used to determine the number of elements successfully set by the operation.