#! /bin/sh File_Sequence_Number="0000015" IPND_emailaddresslist="rod@transmit.com.au" ipnd_records=`wc -l I_P_N_D.save/IPNDUPVICTR.${File_Sequence_Number} | cut -d " " -f 1` echo "ipnd_records=[$ipnd_records]" ipnd_transactions=`expr $ipnd_records - 2` ipnd_transactions="0" echo "ipnd_transactions=[$ipnd_transactions]" if [ $ipnd_transactions -lt 1 ]; then # No transaction if [ -n "$IPND_emailaddresslist" ]; then for emailaddress in $IPND_emailaddresslist do echo "$0: Sending NO TRANSACTION IPND export email to emailaddress=[$emailaddress]" #---------------------------------------------------------- if [ -s ipnd1.err ]; then cp ipnd1.err ipnd1_export_errors.txt unstripcr ipnd1_export_errors.txt attfiles="ipnd1_export_errors.txt" ERRXTRATXT=" *** There are Export processing ERRORS(s) attached ***" else attfiles="" ERRXTRATXT="" fi subject="IPND Export - NO Transactions" emcontent=`cat <