top of page
Happy Learning!
Blog section
This Section provides automation script details -
#!/bin/bash
MDM_SCRIPTS_DIR="/apps/mdm_exec_batch_process/scripts"
# Save user's current working directory
10
SAVE_DIR=`pwd`
# directory change to script directory
cd "$MDM_SCRIPTS_DIR"
RETURN_CODE=0
# Execute the step. Check return code. If not zero, restore directory
# and exit passing the return code
./mdm_exec_batch_proc.sh -action stage -tablename C_STG_IMS_PROD_MSTR
RETURN_CODE=$?
if [ $RETURN_CODE != 0 ]; then
cd "$SAVE_DIR"
exit $RETURN_CODE
fi
./mdm_exec_batch_proc.sh -action load -tablename C_STG_IMS_PROD_MSTR
RETURN_CODE=$?
if [ $RETURN_CODE != 0 ]; then
cd "$SAVE_DIR"
exit $RETURN_CODE
fi
./mdm_exec_batch_proc.sh -action stage -tablename C_STG_CMN_PROD_MSTR
RETURN_CODE=$?
if [ $RETURN_CODE != 0 ]; then
cd "$SAVE_DIR"
exit $RETURN_CODE
fi
./mdm_exec_batch_proc.sh -action load -tablename C_STG_CMN_PROD_MSTR
RETURN_CODE=$?
if [ $RETURN_CODE != 0 ]; then
cd "$SAVE_DIR"
exit $RETURN_CODE
fi
./mdm_exec_batch_proc.sh -action execbatchgroup -batchgroupname "bg stg ims" -
resume true
RETURN_CODE=$?
if [ $RETURN_CODE != 0 ]; then
cd "$SAVE_DIR"
exit $RETURN_CODE
fi
./mdm_exec_batch_proc.sh -action automatchmerge -tablename C_BO_PROD_MSTR
RETURN_CODE=$?
if [ $RETURN_CODE != 0 ]; then
cd "$SAVE_DIR"
exit $RETURN_CODE
fi
bottom of page