Page 1 of 1

Posted: Fri Dec 06, 2002 7:30 am
by WoMaWil
Hi little hope,

"chen" at the end of a word in german means little.

Siply read the docu about dsjob and you see all details. One problem is whem job run longer than an our you may get jobstatus 141, which is no error.

Wolfgang

Posted: Fri Dec 06, 2002 4:05 pm
by ray.wurlod
Chen is a reasonably common name in Taiwan, where the poster lives.

There are three main mechanisms for getting the result from dsjob.

Since it is a well-formed UNIX executable, it does generate an exit status. This can be accessed through $?, for example:
dsjob -listprojects
echo $?

However, I suspect Ms Chen seeks the exit status from the DataStage job, which is started asynchronously (unless the -wait or -jobstatus option is used when the primary subcommand is -run). For example:
dsjob -run -jobstatus projectname jobname

Use the dsjob -jobinfo command to return all the information about the job; one of these items of information is the DataStage completion status. For example:
dsjob -jobinfo projectname jobname