Calling Datastage job in a UNIX script

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
sharantheboss
Participant
Posts: 14
Joined: Mon Mar 23, 2009 12:57 am
Location: INDIA

Calling Datastage job in a UNIX script

Post by sharantheboss »

Hi,

I am calling a DS job using UNIX script

${DS_JOB} -file ${DS_LOGIN} ${DS_SERVER} -run \
-param STEPID=${STEP_ID} \
-param STAT=${STAT} \
-param DATADIR=${DATA_DIR} \
-param SSJ=${SUB_STAT_JOB} \
-wait \
-jobstatus \
-userstatus \
${PROJECT} \
${DS_JOB_NM} >> $LOG_FILE 2>&1
Here what DS_LOGIN,DS_SERVER means?
shall I skip these parameters?


Cheers,
Boss
DS Info
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

If it works you can skip them. Otherwise you probably need -user and -password options preceding them. In that case you may also need to specify -server and, once you get to version 8, -domain as well.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

$DS_LOGIN is a filename containing credentials: server, userid, password. And $DS_SERVER tells it which record in the file to use, looked up by matching server name. As noted, you may be able to leave them out but if not and you remove the "-file ${DS_LOGIN} ${DS_SERVER}" bit you'll need to fully specific the credentials to use on the command line.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply