| 
        
        Parameter
         | 
      
        
        Type
         | 
      
        
        Description
         | 
     
| 
        
        IN
         | 
      
        | 
      
        | 
     
| 
        
        hstmt
         | 
      
        
        int64
         | 
      
        
        The statement handle
         | 
     
| 
        
        OUT
         | 
      
        | 
      
        | 
     
| 
        
        phIndex
         | 
      
        
        int64
         | 
      
        
        The handle of the index identified as optimal for the statement. This value is 0 if no optimal index was identified. Use the method dam_describeIndex to get details about the index. Use dam_getFirstIndexCol, dam_getNextIndexCol, and dam_describeIndexCol to get details about the columns making up the index.
        
       
        NOTE: Your IP code must create this object before calling this method.
         | 
     
| 
        
        phSetOfCondList
         | 
      
        
        int64
         | 
      
        
        If an optimal index is found, then this is a handle to the set of conditions that are present in the query. (Otherwise, this is 0.) Navigate it by using the dam_getFirstCondList and dam_getNextCondList methods.
        
       
        Your code must create this object before calling this method.
        
       
        The IP must call dam_freeSetOfConditionList to free this handle when finished with the query.
         | 
     
| 
        
        RETURN
         | 
      
        | 
      
        | 
     
| 
        | 
      
        
        int
         | 
      
        
        Status of the call:
        
       
        DAM_SUCCESS – on success
        
       
        DAM_FAILURE – error
         |