Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Lists use only a working list, so the SET LIST command requires a working list argument.

Syntax:

Command

Keyword

Value

Developer notes

SET

LIST

value

Conditional. Bind list name.

FRAGMENT

value

Conditional. Bind fragment name.

INSTRUCTION

value

Optional. XML processing instruction.

DATA

value

Conditional. Processing instruction data.

SUBSET


Optional. See SUBSET.

Example

SET LIST(ORDERS) #WRKLST

SET FRAGMENT(DETAIL) SERVICE_EXCHANGE(*FIELD)

Note: List and Fragment keywords

There are two possible ways to add a list of data when creating an XML document.

...

Whichever way you choose, you will need to carefully decide whether the relevant section of XML is defined as a List or a Fragment.

Note: Instruction keyword

If you wanted to add an XML processing instruction as follows:

...