The PROCESSING-INSTRUCTION clause is provided simply to allow XML processing instructions to be embedded directly within the data associated with a tag. For example, the following code:
01 my-tag identified by "my_tag". 05 my-tag-data1 pic x(80). 05 my-tag-pi pic x(80) IS PROCESSING-INSTRUCTION. 05 my-tag-data2 pic x(80). ... move 'data' to my-tag-data1 my-tag-data2 move 'somepi' to my-tag-pi write my-tag
Would yield:
<my_tag>data<?somepi?>data</my_tag>