We have moved to www.dataGenX.net, Keep Learning with us.

Friday, January 04, 2013

Know your DataStage Jobs Status without Director

Hi All
I am getting lot of comments abt a post in which I wrote a script for Monitoring the job without director, But I have removed that due to some code issue.

Here, I wrote a small script to check the job status without director...





#!/usr/bin/ksh # Declares a Korn shell ###############################
# #
##!/usr/bin/sh # Declares a Bourne shell #
##!/usr/bin/bash # Declares a Bourne-Again shell #
##!/usr/bin/csh # Declares a C shell #
##!/usr/bin/tsh # Declares a T shell #
# #
# #
# SCRIPT: dsjobStatus.sh #
# AUTHOR: Atul Singh #
# DATE: Jan 04, 2013 #
# #
# #
# PLATFORM: (AIX, HP-UX, Linux, Solaris & All Nix ) #
# #
# #
# PURPOSE: This script take the 2 input as argument and fetch the #
# datastage job status and last Start & End time of the job #
# #
# #
############################################################################
. /opt/IBM/InformationServer/Server/DSEngine/dsenv > /dev/null 2>&1
if [[ $# -eq 2 ]]; then
PROJECT="$1";
JOB="$2";
out=`dsjob -jobinfo $PROJECT $JOB | egrep 'Job Status|Job Start Time|Last Run Time'`
echo "$PROJECT\t$JOB\t$out";
else
echo "Please execute the script like : $0 PROJECT_NAME JOB_NAME";
fi

Please let me know if any issue you faced while executing/running this script.

Visit this also :
Get DataStage Job Information without using Director


till then.....
njoy the simplicity.......