Unix/Linux Go Back    


Shell Programming and Scripting Unix shell scripting - KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and shell scripts and shell scripting languages here.

dsjob command to execute DataStage jobs

Shell Programming and Scripting


Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 10-31-2007
sureshg_sampat sureshg_sampat is offline
Registered User
 
Join Date: Nov 2006
Last Activity: 28 July 2013, 1:34 PM EDT
Location: Pune, India
Posts: 71
Thanks: 0
Thanked 1 Time in 1 Post
dsjob command to execute DataStage jobs

Hi Friends,

I am using a dsjob command in a unix script to invoke DataStage jobs.
DataStage server jobs (version 7.5.2)

The command looks like thisL:
$DSBinPath/dsjob -server :$SERVER_PORTID -run -mode NORMAL -jobstatus -param INPUT_GCDB_DIR=$InputFilePath -param INTERIM_DIR=$SequentialFilePath -param SCRIPT_DIR=$ShellScriptPath -param CountryID=$CountryID -warn 0 $ProjectName $JobName.$CountryID

Then there is another command to check for job status.
JOB_STATUS=`$DSBinPath/dsjob -server :$SERVER_PORTID -jobinfo $ProjectName $JobName.$CountryID | head -1 | cut -d"(" -f2 | cut -d")" -f1`

My query is :
What does each return code value (0,1,2) for JOB_STATUS signify?

Regards,
Suresh
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
jobs command in a script. kanas01 Shell Programming and Scripting 3 04-22-2011 04:53 PM
DataStage log file output via dsjob command dsnaveen Shell Programming and Scripting 3 02-22-2011 05:22 AM
capture last run log using dsjob HemaV Shell Programming and Scripting 0 09-03-2010 06:05 AM
jobs command bigben1220 UNIX for Dummies Questions & Answers 6 01-07-2010 07:15 AM
invoke windows datastage dsjob from unix anaconga UNIX for Advanced & Expert Users 0 09-01-2008 02:21 PM



All times are GMT -4. The time now is 02:46 AM.