This example queries the repository for copybooks used in three Cobol programs:
<query name="Find COPYBOOKs used in given programs">
<object>
<objecttype>
<type name="COBOL"/>
</objecttype>
<cond>
<attr name="Name" op="in"
arg="'GSS1.CBL','GSS2.CBL','GSS3.CBL'"/>
</cond>
<related>
<reltype>
<relset flag="USE"/>
</reltype>
<object>
<fetchid as="ID2"/>
<fetchtype as="ObjectType2"/>
<fetchdisplay as="ObjectName2"/>
</object>
</related>
</object>
</query>