Execution of Shell Scripts in DataStage jobs

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
sathyanveshi
Participant
Posts: 66
Joined: Tue Dec 07, 2004 12:48 pm

Execution of Shell Scripts in DataStage jobs

Post by sathyanveshi »

Hi,

I have a scenario where I need to execute a shell script in the Before and After Job Routines. I could run the job but could not execute the shell embedded in the job.

When looking at the log file for the job, the third entry is Environment Variable Settings in which I could find an entry which reads:

LD_PRELOAD=/opt/ascential/DataStage/DSEngine/java/jre/lib/PA_RISC/hotspot/libjvm.sl

Is this scenario something to with that entry? Also, please let me know the possible reason for this behaviour of the job.

Cheers,
Mohan
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Hard to say without knowing what error message(s) you are getting, what your shell script looks like and how exactly you are executing it. :wink:

About all we could tell from what was posted is it looks like you are running on HP/UX.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Eric
Participant
Posts: 254
Joined: Mon Sep 29, 2003 4:35 am

Post by Eric »

LD_PRELOAD has nothing to do with running shell scripts from DataStage jobs.

Does the script run OK from the command line? (whats the return code)
Are you using the same user as the DataStage job?
Are you adding the full path to the script name in your DataStage job?
Post Reply