Index: trunk/MagicSoft/Mars/datacenter/scripts/dodatacheck
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/dodatacheck	(revision 7268)
+++ trunk/MagicSoft/Mars/datacenter/scripts/dodatacheck	(revision 7269)
@@ -155,4 +155,19 @@
    esac
 
+   echo "resetting the status for fExclusions done for date $date2" >> $scriptlog 2>&1
+   resetlogpath=$logpath/resetexclusions/$date
+   echo "resetlogpath: $resetlogpath" >> $scriptlog 2>&1
+   makedir $resetlogpath >> $scriptlog 2>&1
+   resetlog=$resetlogpath/reset-exclusions-$no2-$date2.log
+   echo "setstatuslogfile: $setstatuslog" >> $scriptlog 2>&1
+
+   check5=`root -q -b $macrospath/resetcolumn.C+\("\"fExclusionsDone\""\,"\"SequenceBuildStatus\""\,"\"$date2\""\,"\"$date2\""\,kFALSE\) | tee $setstatuslog | grep int | sed -e 's/(int)//'`
+   case $check5 in
+      1)   echo "check5=$check5 -> everything ok, fExclusions have been reset " >> $scriptlog 2>&1
+           ;;
+      *)   echo "check5=$check5 -> ERROR -> step could not be resetted -> repeat step " >> $scriptlog 2>&1
+           continue;;
+   esac
+
    echo "inserting the status for the datacheck for run $run into the db" >> $scriptlog 2>&1
    setstatuslogpath=$logpath/setstatus/datacheck/$date
@@ -167,19 +182,4 @@
            ;;
       *)   echo "check4=$check4 -> ERROR -> step could not be set" >> $scriptlog 2>&1
-           continue;;
-   esac
-
-   echo "resetting the status for fExclusions done for date $date2" >> $scriptlog 2>&1
-   resetlogpath=$logpath/resetexclusions/$date
-   echo "resetlogpath: $resetlogpath" >> $scriptlog 2>&1
-   makedir $resetlogpath >> $scriptlog 2>&1
-   resetlog=$resetlogpath/reset-exclusions-$no2-$date2.log
-   echo "setstatuslogfile: $setstatuslog" >> $scriptlog 2>&1
-
-   check5=`root -q -b $macrospath/resetcolumn.C+\("\"fExclusionsDone\""\,"\"SequenceBuildStatus\""\,"\"$date2\""\,"\"$date2\""\,kFALSE\) | tee $setstatuslog | grep int | sed -e 's/(int)//'`
-   case $check5 in
-      1)   echo "check5=$check5 -> everything ok, fExclusions have been reset " >> $scriptlog 2>&1
-           ;;
-      *)   echo "check5=$check5 -> ERROR -> step could not be resetted -> repeat step " >> $scriptlog 2>&1
            ;;
    esac
