Index: trunk/MagicSoft/Mars/datacenter/scripts/insertdatasets
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/insertdatasets	(revision 7902)
+++ trunk/MagicSoft/Mars/datacenter/scripts/insertdatasets	(revision 7938)
@@ -42,5 +42,5 @@
 lockfile=$lockpath/lock-insertdatasets.txt
 
-scriptlogpath=$logpath/run/insertdatasets/`date +%Y/%m`
+scriptlogpath=$runlogpath/$program
 makedir $scriptlogpath
 
@@ -65,4 +65,5 @@
    no2=`grep 'AnalysisNumber:' $datasetfile | sed -e 's/AnalysisNumber://g' | sed -e 's/ //g'`
    no3=`printf %08d $no2`
+   no4=`printf %08d $no2 | cut -c 1-5`
    # compare the two datasetnumber 
    # continue only if number is the same
@@ -93,5 +94,5 @@
    echo " " >> $scriptlog 2>&1 
    
-   insertdatasetpath=$logpath/insertdataset/$no3
+   insertdatasetpath=$logpath/insertdataset/$no4
    makedir $insertdatasetpath >> $scriptlog 2>&1
    insertdatasetlog=$insertdatasetpath/insertdataset-$no3.log
