Index: trunk/tools/eam/rawfix.20230221/src/rawfix.md5sum.pt
===================================================================
--- trunk/tools/eam/rawfix.20230221/src/rawfix.md5sum.pt	(revision 42462)
+++ trunk/tools/eam/rawfix.20230221/src/rawfix.md5sum.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.md5sum.runhosts.v%d" $mypath $DATEOBS $ITER
+    sprintf tmpline "%s/%s/%s/log.md5sum.runhosts.v%d" $mypath $YEAR $DATEOBS $ITER
     date -var mydate
     exec echo "# start runhosts $mydate" >> $tmpline
@@ -153,12 +155,13 @@
     book getword md5host.book $pageName md5host -var MD5HOST
 
-    option $pageName $DATEOBS
+    substr $DATEOBS 0 4 YEAR
+
+    option $pageName $DATEOBS $YEAR
     # save DATEOBS so we can find the md5sum.book entry
-
-    substr $DATEOBS 0 4 YEAR
+    # also save YEAR for output log
 
     # does the output go here?
-    stdout $mypath/$YEAR/$DATEOBS/log.md5sum.runhosts.v$ITER  
-    stderr $mypath/$YEAR/$DATEOBS/log.md5sum.runhosts.v$ITER  
+    stdout $mypath/$YEAR/$DATEOBS/log.md5sum.$MD5HOST.v$ITER  
+    stderr $mypath/$YEAR/$DATEOBS/log.md5sum.$MD5HOST.v$ITER  
 
     $USE_HOST = $MD5HOST
@@ -276,4 +279,6 @@
   end
 
+  # options are : pagename DATEOBS YEAR
+
   book setword md5host.book $options:0 pantaskState DONE
   book getword md5sum.book $options:1 NHOST -var Nhosts
@@ -282,7 +287,8 @@
   $Ndone ++
   book setword md5sum.book $options:1 NDONE $Ndone
+
+  sprintf tmpline "%s/%s/%s/log.md5sum.runhosts.v%d" $mypath $options:2 $options:1 $ITER
   if ("$1" != "OK")
     book setword md5sum.book $options:1 pantasksQuality $1
-    sprintf tmpline "%s/%s/log.md5sum.runhosts.v%d" $mypath $options:1 $ITER
     exec echo "failure $1 $options:0" >> $tmpline
   else
