unix script called through a sequence job

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
poorna.ds
Participant
Posts: 18
Joined: Sun Jun 22, 2008 3:07 am
Location: Mumbai

unix script called through a sequence job

Post by poorna.ds »

Hi All,
Im trying to execute a unix script through 'execute command' stage . No other stages used. The value given in the command tab is : sh /rdw/prd/CIS/SCRIPTS/DDD.sh
In the parameter section value is : #ScriptDateValue#(which is JUL-2011,partitionvalue of the table).
The script is suppose to insert data into few tables.

Datastage job finishes with no error. But data is not loaded in the tables.
While if i trigger the same script though unix its executing successfully.

The logs in the director are as below:
mthly_test2..JobControl (@sh): Executed: sh /rdw/prd/CIS/SCRIPTS/DDD.sh JUL-2011
Reply=127
Output from command ====>
/rdw/prd/CIS/SCRIPTS/DDD.sh[4]: sqlplus: not found

Can anybody help me with this?
PaulVL
Premium Member
Premium Member
Posts: 1315
Joined: Fri Dec 17, 2010 4:36 pm

Post by PaulVL »

Within your Developement environment, you might want to put in some debuging statements.

Your script executed, but the environment is not set up properly.

Are you executing the script with your user id from the command line?
When you execute via the tool, are you credentially mapped to a different user id?

In your script, do an echo on your environment variables.
Compare that to your command line environment.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Re: unix script called through a sequence job

Post by chulett »

poorna.ds wrote:sqlplus: not found
Help it be found, use a full path to the executable or add where it lives to your $PATH variable. Standard 'Command Line 101' stuff.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply