An InfoSphere DataStage job completes successfully but dsjob returns Error 81002 waiting for job

Symptoms

When you run dsjob from UNIX, the status of success or failure is returned correctly for most jobs. However, long-running jobs return the Error 81002 waiting for job error even though the job runs successfully. Specifically, if the job runs longer than the timeout set in InfoSphere® DataStage® Administrator -> General tab -> Inactivity timeout, the 81002 error is returned. If the job completes before the timeout, the correct status is returned.

Resolving the problem

Increase the timeout in the InfoSphere DataStage Administrator to accommodate the longest-running job. However, increasing the timeout also increases the time that inactive client connections remain on the system before they are cleaned up.

If the timeout increase in InfoSphere DataStage Administrator does not work, create a script that starts dsjoband uses a loop to query dsjob periodically to avoid the timeout.