Sample XML for BASE template
The following XML defines a template that is created from two copybooks, COPY01 and COPY02. These copybooks can be found in data set FMN.COPY. The example shows how to provide an 01 field and its name (name01="type01") and how to specify redefines and range specifications. It also shows how to provide identification criteria.
<template lang="COBOL" type="BASE">
<copybooks>
<library>FMN.COPY</library>
<member name="COPY01" name01="type01">
<redefine level="3"/>
<sourcerange fromstmt="2"/>
</member>
<member name="COPY02" name01="type02">
<redefine level="3"/>
<sourcerange fromstmt="2"/>
</member>
</copybooks>
<layout copybook="COPY01">
<criteria type="ID">
<exp><![CDATA[#2 = '01']]></exp>
</criteria>
</layout>
<layout copybook="COPY02">
<criteria type="ID">
<exp><![CDATA[#2 = '02']]></exp>
</criteria>
</layout>
</template>