Index: trunk/tools/eam/rawfix.20230221/src/rawfix.fixchip.pt
===================================================================
--- trunk/tools/eam/rawfix.20230221/src/rawfix.fixchip.pt	(revision 42462)
+++ trunk/tools/eam/rawfix.20230221/src/rawfix.fixchip.pt	(revision 42464)
@@ -86,6 +86,8 @@
     # save the page so we can use it below
 
+    substr $DATEOBS 0 4 YEAR
+
     # write an entry point in the log for this night
-    sprintf tmpline "%s/%s/log.fixchip.runhosts.v%d" $mypath $DATEOBS $ITER
+    sprintf tmpline "%s/%s/%s/log.fixchip.runhosts.v%d" $mypath $YEAR $DATEOBS $ITER
     date -var mydate
     exec echo "# start runhosts $mydate" >> $tmpline
@@ -149,5 +151,4 @@
     book getword fixhost.book $pageName fixhost -var FIXHOST
     book getword fixhost.book $pageName chipID  -var CHIP_ID
-    option $pageName $DATEOBS
 
     substr $DATEOBS 0 4 YEAR
@@ -155,4 +156,8 @@
     substr $DATEOBS 6 2 DAY
     sprintf FULLDATE "%s/%s/%s" $YEAR $MONTH $DAY
+
+    option $pageName $DATEOBS $YEAR
+    # save DATEOBS so we can find the md5sum.book entry
+    # also save YEAR for output log
 
     stdout $mypath/$YEAR/$DATEOBS/log.fixchip.run.$CHIP_ID.v$ITER
@@ -268,4 +273,6 @@
   end
 
+  # options are : pagename DATEOBS YEAR
+
   book setword fixhost.book $options:0 pantaskState DONE
   book getword fixchip.book $options:1 NHOST -var Nhosts
@@ -274,7 +281,8 @@
   $Ndone ++
   book setword fixchip.book $options:1 NDONE $Ndone
+
+  sprintf tmpline "%s/%s/%s/log.fixchip.runhosts.v%d" $mypath $options:2 $options:1 $ITER
   if ("$1" != "OK")
     book setword fixchip.book $options:1 pantasksQuality $1
-    sprintf tmpline "%s/%s/log.fixchip.runhosts.v%d" $mypath $options:1 $ITER
     exec echo "failure $1 $options:0" >> $tmpline
   else
