dsjob command to execute DataStage jobs


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting dsjob command to execute DataStage jobs
# 1  
Old 10-31-2007
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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to compile a Datastage Job using Execute Command Stage or Routines in Datastage 11?

I am trying to compile the datastage jobs using the Execute Command stage in datastage 11 or any Routines if possible. My datastage is on Unix machine. So, How can I Compile a datastage job in UNIX from command line or any Routines. Please help me in doing so. Thank you. (1 Reply)
Discussion started by: elena jessi
1 Replies

2. Shell Programming and Scripting

Command to check only Autosys running jobs with autorep like command

Hi, Is there any specific command to use to check only say Running jobs via autorep or similar command for Autosys? (0 Replies)
Discussion started by: sidnow
0 Replies

3. Shell Programming and Scripting

Command to stop all the cron jobs

Hi All, Please provide the command to stop all the cron jobs. Thanks in Advance Regards, Sindu (2 Replies)
Discussion started by: indira_s
2 Replies

4. Shell Programming and Scripting

waiting on jobs in bash, allowing limited parallel jobs at one time, and then for all to finish

Hello, I am running GNU bash, version 3.2.39(1)-release (x86_64-pc-linux-gnu). I have a specific question pertaining to waiting on jobs run in sub-shells, based on the max number of parallel processes I want to allow, and then wait... (1 Reply)
Discussion started by: srao
1 Replies

5. Shell Programming and Scripting

jobs command in a script.

When you run this script in a command prompt it runs fines and echos the background jobs but when written to a script and run, it outputs nothing. for job in `jobs -p` do echo $job done Any ideas what I might be doing wrong. Thanks, SK (3 Replies)
Discussion started by: kanas01
3 Replies

6. Shell Programming and Scripting

DataStage log file output via dsjob command

Hi, I do have 2 files Job_Name Job1 Job2 Job3 Instance_Name USA IND SRI I need to write a script, i.e, output of job1.USA should come in log in unix. i.,e When it runs for the first time it should run as Job1.USA next run Job1.IND Job1.SRI (3 Replies)
Discussion started by: dsnaveen
3 Replies

7. Shell Programming and Scripting

capture last run log using dsjob

Hi All, Could you please let me know how to capture the WARNING or FATAL errors for the last run log using dsjob -logsum in Korn Unix Shell. Thanks in Advance, (0 Replies)
Discussion started by: HemaV
0 Replies

8. UNIX for Dummies Questions & Answers

jobs command

Good morning! When I type in the command "jobs" it takes me back to the command prompt? Any idea why and how I can display all the jobs that are currently running off that host? Ben (6 Replies)
Discussion started by: bigben1220
6 Replies

9. UNIX for Advanced & Expert Users

invoke windows datastage dsjob from unix

hello, i have a windows server with datastage. In another machine, unix machine, i have a shell script that need to invoke the datastage dsjob. Can anyone help me? (0 Replies)
Discussion started by: anaconga
0 Replies

10. Shell Programming and Scripting

background jobs exit status and limit the number of jobs to run

i need to execute 5 jobs at a time in background and need to get the exit status of all the jobs i wrote small script below , i'm not sure this is right way to do it.any ideas please help. $cat run_job.ksh #!/usr/bin/ksh #################################### typeset -u SCHEMA_NAME=$1 ... (1 Reply)
Discussion started by: GrepMe
1 Replies
Login or Register to Ask a Question
atq(1)								   User Commands							    atq(1)

NAME
atq - display the jobs queued to run at specified times SYNOPSIS
atq [-c] [-n] [username...] DESCRIPTION
The atq utility displays the at jobs queued up for the current user. at(1) is a utility that allows users to execute commands at a later date. If invoked by a user with the solaris.jobs.admin authorization, atq will display all jobs in the queue. If no options are given, the jobs are displayed in chronological order of execution. When an authorized user invokes atq without specifying username, the entire queue is displayed; when a username is specified, only those jobs belonging to the named user are displayed. OPTIONS
The following options are supported: -c Displays the queued jobs in the order they were created (that is, the time that the at command was given). -n Displays only the total number of jobs currently in the queue. FILES
/var/spool/cron/atjobs spool area for at jobs. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
at(1), atrm(1), auths(1), cron(1M), auth_attr(4), attributes(5) SunOS 5.10 13 Aug 1999 atq(1)