Environment variable strange behavior

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
dnsjain
Charter Member
Charter Member
Posts: 34
Joined: Thu May 08, 2003 2:12 pm

Environment variable strange behavior

Post 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
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply