Listing of the Script
printf (" %6d\n", primrecs)
printdashes()
printf ("Grand Total ")
printvals(grandvalues)
printf (" %6d\n", grandrecs)
printdashes()
}’ primtitle="$primarytitle" sectitle="$secondarytitle" machine=$machine \
days=$days hours=$hours minutes=$minutes
/bin/rm $tmpfile
if [ "$delete" ]; then
echo "$sname : Deleting accounting statistics records"
querystr="delete from acctstats where running=0"
$RMSQUERY $querystr
if [ $? -ne 0 ]; then
echo "$sname : ERROR : $RMSQUERY $querystr FAILED"
exit 1
else
echo "$sname : Accounting statistics records deleted"
fi
fi
exit 0
E-8 Accounting Summary Script