Page 1 of 1

Calling Datastage job in a UNIX script

Posted: Wed Apr 08, 2009 1:35 am
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

Posted: Wed Apr 08, 2009 7:16 am
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.

Posted: Wed Apr 08, 2009 7:29 am
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.