DATE=$1
# Reads the variables from the environment file.
. ./.salesenv
/stage_area/pm/script/RemoveDate.sh -d $DATE /stage_area/pm/SrcFiles/basdb A.TNB2.dat B.TNB2.dat C.TNB2.dat
errorcode="$?"
if [ $errorcode -ne 0 ]; then
echo "Couldn't load with date $DATE, Please chek the files!"
fi
$PMDIR/pmcmd startworkflow -sv ${PMSERVICE} -d ${PMDOMAIN} -u ${PMUSER} -p ${PMLOSEN} -f ${PMFOLDER} -wait bLoadSaleDomainMan
errorcode="$?"
if [ $errorcode -ne 0 ]; then
echo "Batch failed loading the file with date $ DATE"
exit 1
fi
rm $LOADDIR/A.TNB2.dat
rm $LOADDIR/B.TNB2.dat
rm $LOADDIR/C.TNB2.dat
No comments:
Post a Comment