My scrapbook about anything which I learned or want to remember, Sometime about tech tips, thoughts and rambling. If you find anything useful don't forget to give thumbs-up :)

Breaking

Wednesday, December 15, 2021

Know your DataStage Jobs 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




Like the below page to get the update  
Facebook Page      Facebook Group      Twitter Feed      Telegram Group




No comments:

Post a Comment

Disclaimer

The postings on this site are my own and don't necessarily represent IBM's or other companies positions, strategies or opinions. All content provided on this blog is for informational purposes and knowledge sharing only.
The owner of this blog makes no representations as to the accuracy or completeness of any information on this site or found by following any link on this site. The owner will not be liable for any errors or omissions in this information nor for the availability of this information. The owner will not be liable for any losses, injuries, or damages from the display or use of his information.