Page 1 of 1

Environment variable strange behavior

Posted: Tue Dec 14, 2004 4:17 pm
by dnsjain
In my batch job, once processing is complete for the file, I compress the file (using gzip) and move the file to archive directory.

This functionality works fine, if I run the job manually from director. If I let the job run through scheduler, it give me error when it tries to run gzip. It returns [SH: gzip: not found.].

I am scheduling the job using the same user id and passing the excatly same parameters, what I am passing when I run manually. I am running gzip command from DSExecute.

Any suggestions will be appreciated.

Dinesh

Posted: Tue Dec 14, 2004 8:11 pm
by ray.wurlod
Looks to me that you need to add the directory where the gzip executable resides to the PATH environment variable in $DSHOME/dsenv.

The dsenv file is used by every DataStage process to initialize its environment.