Index: /trunk/ippTools/src/dettool.c
===================================================================
--- /trunk/ippTools/src/dettool.c	(revision 7082)
+++ /trunk/ippTools/src/dettool.c	(revision 7083)
@@ -157,4 +157,21 @@
     PS_ASSERT_PTR_NON_NULL(config, false);
 
+    // select exp_ids from detInputExp matching det_idp
+    // where query should be pre-generated
+    psArray *detInputExp = 
+        detInputExpSelectRowObjects(config->dbh, config->where, 0);
+    if (!detInputExp) {
+        psError(PS_ERR_UNKNOWN, false, "no rawDetrendExp rows found");
+        return false;
+    }
+
+    // generate where query with just the exp_ids
+    for (long i = 0; i < psArrayLength(detInputExp); i++) {
+    }
+
+    // select rawImfiles with matching exp_ids
+
+    // print imfile list
+
     return true;
 }
