Example 1

This example queries the repository for the object ID and parse status of the GSS.cbl source file:

<query name="Select a COBOL object by name"> 
  <object> 
    <objecttype> 
      <type name="COBOL"/> 
    </objecttype> 
    <fetchid as="ID"/> 
      <fetchattr name="ParseStatus" as="Parsed"/> 
    <cond> 
      <attr name="Name" op="=" arg="GSS.cbl"/> 
    </cond> 
  </object> 
</query>