Export utility XML format

This topic describes the format of the XML that is produced by the template repository export utility and processed by the import utility.

The following sample show definition blocks for COBOL, PL/I, and HLASM. Specify one language definition only.

<repository>

  <!-- Default data sets – entry -->
  <entry base="1">
    <library>default template dsn</library>     <!-- up to 6 repeats -->
  </entry>
    <entry ims=“1” subsys=“subsys_name” >
    <library>default IMS template dsn</library> <!— up to 6 repeats -->
  </entry>
  <entry db2=“1” subsys=“subsys_name” >
    <library>default DB2 template dsn</library> <!— up to 6 repeats -->
  </entry>
  <!-- Resource entries -->
  <entry    name="data set or resource name"
            member="template member name"
            ccsid="source CCSID value"
            dataccsid="Data CCSID value">
    <library>template data set</library>        <!-- up to 6 repeats -->

    <!-- Copybook element is only required for copybook members -->
    <copybooks>
      <syslib>syslib</syslib>                   <!-- up to 12 repeats -->
      <!- Language definitions for copy. Specify only one language. -->
        <cobol  dbcs="Boolean"
                maxrc="number"
                mixedcase="Boolean"
                dpc="Boolean"
                arith="Boolean">
          <replace>
            <repfrom>from string</repfrom>
            <repto>to string</repto>
          </replace>
          <cbladdop>Additional options</cbladdop>
        </cobol>

        <pli    graph="Boolean"
                maxrc="number"
                bin63="Boolean"
                fixdec="Boolean"
                unalign="Boolean">
          <pliaddop>Additional options</pliaddop>
        </pli>

        <asm    dbcs="Boolean"
                noalign="Boolean"
                maxrc="number">
          <asmaddop>Additional options</asmaddop>
    </asm>

    </copybooks>
  </entry>
</repository>