Index: trunk/MagicSoft/Mars/datacenter/scripts/dodatacheck
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/dodatacheck	(revision 7465)
+++ trunk/MagicSoft/Mars/datacenter/scripts/dodatacheck	(revision 7471)
@@ -143,8 +143,9 @@
 for run in ${runs[@]}
 do 
-   date
    echo "do $program for run "$run >> $scriptlog 2>&1
    no=`printf %08d $run | cut -c 0-2`
    no2=`printf %08d $run`
+   var1=$date
+   var2=$no2
    rawfile=`find /magic/data/rawfiles/ -name *${run}_[D,P,C,S]_*_E.raw`
    echo "rawfile: "$rawfile >> $scriptlog 2>&1
@@ -161,4 +162,6 @@
 
    echo "doing filldotraw..." >> $scriptlog 2>&1
+   setstatus "start" >> $scriptlog 2>&1
+
    check1=`root -q -b $macrospath/filldotraw.C+\("\"$rawfile\""\,kFALSE\) | tee $filldotrawlogfile | grep int | sed -e 's/.*(int)//'`
 
@@ -167,5 +170,8 @@
             ;;
        *)   echo "check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
-            continue;;
+            com="filldotraw for run $run failed"
+            check=$check1
+            setstatus "stop" >> $scriptlog 2>&1
+            continue ;;
    esac
    
@@ -189,4 +195,7 @@
                ;;
           *)   echo "check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
+               com="sinope for run $run failed"
+               check=$check2
+               setstatus "stop" >> $scriptlog 2>&1
                continue 2;;
       esac
@@ -206,4 +215,7 @@
             ;;
        *)   echo "check3=$check3 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
+            com="fillsinope for run $run failed"
+            check=$check3
+            setstatus "stop" >> $scriptlog 2>&1
             continue;;
    esac
@@ -222,4 +234,7 @@
            ;;
       *)   echo "check5=$check5 -> ERROR -> step could not be resetted -> repeat step " >> $scriptlog 2>&1
+           com="reset status for fExclusionsDone for date $date2 failed"
+           check=$check5
+           setstatus "stop" >> $scriptlog 2>&1
            continue;;
    esac
