Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 7502)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 7503)
@@ -21,5 +21,5 @@
 
    * datacenter/scripts/sourcefile: 
-     - fixed small bug
+     - fixed small bugs
 
    * datacenter/scripts/movingrawfiles: 
@@ -32,4 +32,10 @@
      - implemented limitation for number of todo files for 
        SequenceProcessStatus 
+
+   * datacenter/macros/checkfileavail.C,checkstardone.C: 
+     - changed return code in case that files are not available
+
+   * datacenter/scripts/checkfilesforsequavail,checkstardone,sourcefile:
+     - adapted to changed return code in macros
 
 
Index: /trunk/MagicSoft/Mars/datacenter/macros/checkfileavail.C
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/macros/checkfileavail.C	(revision 7502)
+++ /trunk/MagicSoft/Mars/datacenter/macros/checkfileavail.C	(revision 7503)
@@ -143,5 +143,5 @@
 //            || GetStatus(serv, rc, runno, "RunProcessStatus", "fTimingCorrection")=="1970-01-01 00:00:00"
             || GetStatus(serv, rc, runno, "RunProcessStatus", "fRawFileAvail")=="")
-            return 0;
+            return 2;
     }
     //if all values are okay (i.e. files are availabel), 1 is returned
Index: /trunk/MagicSoft/Mars/datacenter/macros/checkstardone.C
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/macros/checkstardone.C	(revision 7502)
+++ /trunk/MagicSoft/Mars/datacenter/macros/checkstardone.C	(revision 7503)
@@ -101,5 +101,5 @@
     //check if fStar not NULL for sequence 
     if (GetStatus(serv, rc, datasetno, "SequenceProcessStatus", "fStar")=="")
-        return 0;
+        return 2;
 
     return 1;
Index: /trunk/MagicSoft/Mars/datacenter/scripts/checkfilesforsequenceavail
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/scripts/checkfilesforsequenceavail	(revision 7502)
+++ /trunk/MagicSoft/Mars/datacenter/scripts/checkfilesforsequenceavail	(revision 7503)
@@ -89,4 +89,7 @@
    case $check1 in
       1)   echo "check1=$check1 -> everything ok -> setting status..." >> $scriptlog 2>&1 ;;
+      2)   echo "check1=$check1 -> files not yet available -> continue..." >> $scriptlog 2>&1 
+           check="no"
+           ;;
       *)   echo "check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
            com=$Ffilesavail
Index: /trunk/MagicSoft/Mars/datacenter/scripts/checkstardone
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/scripts/checkstardone	(revision 7502)
+++ /trunk/MagicSoft/Mars/datacenter/scripts/checkstardone	(revision 7503)
@@ -101,4 +101,7 @@
       case $check1 in
          1)   echo "check1=$check1 -> everything ok -> continue with next sequence..." >> $scriptlog 2>&1 ;;
+         2)   echo "check1=$check1 -> files not yet available -> continue..." >> $scriptlog 2>&1 
+              check="no"
+              ;;
          *)   echo "check1=$check1 -> ERROR " >> $scriptlog 2>&1 
               echo "starfiles not available for sequence -> continue" >> $scriptlog 2>&1 
Index: /trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/scripts/sourcefile	(revision 7502)
+++ /trunk/MagicSoft/Mars/datacenter/scripts/sourcefile	(revision 7503)
@@ -174,4 +174,7 @@
                       statustime="Now()"
                       ;;
+                 no)  echo ", nothing new"
+                      $check="ok"
+                      ;;
                   *)  echo " failed"
                       starttime=noreset
@@ -183,4 +186,5 @@
                       fi
                       failedtime="Now()"
+                      $check="ok"
                       ;;
                esac
