Index: branches/eam_branch_20080109/ippTasks/pantasks.pro
===================================================================
--- branches/eam_branch_20080109/ippTasks/pantasks.pro	(revision 16149)
+++ branches/eam_branch_20080109/ippTasks/pantasks.pro	(revision 16165)
@@ -340,4 +340,26 @@
 end
 
+macro set.workdir.by.camera
+  if ($0 != 3)
+    echo "USAGE: set.workdir.by.camera (camera) (class_id)"
+    break
+  end
+
+  if (not($parallel))
+    ???
+    return
+  end
+
+  # missing camera and/or chiphosts table results in host = NULL
+  book getword chiphosts $1 $2 -var $host
+
+  if ("$host" == "NULL")
+    ???
+    return
+  end
+
+  $workdir = /data/$host.0
+end
+
 macro set.host.by.camera
   if ($0 != 3)
