Is this the right way to execute a script in a sequence

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
ady
Premium Member
Premium Member
Posts: 189
Joined: Thu Oct 12, 2006 12:08 am

Is this the right way to execute a script in a sequence

Post by ady »

The script name is "PMCSExtractEPBWhlseOrders", its a sql script. I am specifying the script in a execute command stage in a sequence. Is this the way I am supposed to do it??

I get a error saying SP2-0640: Not connected, when i do it ... does this mean i dont have the permission to execute the script or , am i doin it wrong?

Please help


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

Post by chulett »

It should mean you left out the connection information. Are we talking Oracle here? Then your script needs to spawn a sqlplus session, supply the logon credentials it needs and then run your sql script. Would be pretty much identical for other databases except for the 'sqlplus' bit. :wink:

That's what any 'sql script' needs regardless of the tool launching it.
-craig

"You can never have too many knives" -- Logan Nine Fingers
kishoreramachandran
Participant
Posts: 88
Joined: Tue Nov 28, 2006 9:33 pm

Post by kishoreramachandran »

please execute the script outside datastage first and check if it is working.
then what ever command you gave to execute, the same thing should be given from datastage.
Post Reply