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
Environment variable strange behavior
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
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.
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.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.