sh
#!/bin/sh
#
# call_plan_renewal_revenue.sh
#
# Patni Data Warehouse Team
# 09-OCT-2012
#
# Usage:
#
call_plan_renewal_revenue.sh
#
The Parameter file contains details about the psql script that needs to
#
executed.
#
# ==============================================================================
#
Modifications
# Date
Inits Changes
# ----------------------------------------------------------------------------# 09-OCT-2012 MP
Initial creation
# ==============================================================================
# Program Infomation
VERDATE="Version 1.1 - 30-MAR-11 "
PROGNAME=`basename $0`
# Enable for TESTING ONLY
#set -n # Uncomment to check the script syntax without any execution
set -x # Uncomment to debug this shell script
#-------------------------------------------------------------------------------------#
# Validate if a valid envfile parameter was specified.
#-------------------------------------------------------------------------------------#
ENV_FILE=/dswork/prod_HCPT_DWH_R1_DCA/scripts/etc/param_global.config
if [ -n "${ENV_FILE}" ] #-&& -e "${ENV_FILE}"
then
source ${ENV_FILE}
else
echo "environment file is not specifiled"
exit 1
fi
#-------------------------------------------------------------------------------------#
# Setup Log file
#-------------------------------------------------------------------------------------#
DASHES="-------------------------------------------------------------------------------------"
EQUALS="====================================================================="
TSTMP=`date +%Y%m%d_%H%M`
LOG_FILE_BASE=`basename $0 | cut --delimiter=. --fields=1`
LOG_FILE=$LOG_DIR/${LOG_FILE_BASE}_${TSTMP}.log
DT_SK_ID=$1
cat /dev/null > $LOG_FILE
echo $DASHES >> $LOG_FILE
echo >> $LOG_FILE
echo "PROCESS NAME: $PROCESS_NAME" >> $LOG_FILE
echo
echo
echo
echo
echo
echo