Before/after subroutine options..

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
allavivek
Premium Member
Premium Member
Posts: 211
Joined: Sat May 01, 2010 5:07 pm

Before/after subroutine options..

Post by allavivek »

Hi All,

I was going through job properties and in before/after subroutine some options are..

ExecSh
ExecSHClient
ExecTCL

ExexSh is to execute shell commands..and coming to other two options can any one explain me when they are used...

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

Post by chulett »

You probably saw ExecSHSilent rather than 'Client' and that just suppresses log messages. ExecTCL let's you execute Universe / TCL queries, typically against the repository.
-craig

"You can never have too many knives" -- Logan Nine Fingers
allavivek
Premium Member
Premium Member
Posts: 211
Joined: Sat May 01, 2010 5:07 pm

Post by allavivek »

chulett wrote:You probably saw ExecSHSilent rather than 'Client' and that just suppresses log messages. ExecTCL let's you execute Universe / TCL queries, typically against the repository. ...
Thanks chullet..

Can i issue command like this

ExecSH . /path/mail.sh

to run script...
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You can run any valid script or UNIX command as long as it is in your PATH or properly pathed. Not sure what's up with your leading "dot", that's certainly not needed, though.
-craig

"You can never have too many knives" -- Logan Nine Fingers
allavivek
Premium Member
Premium Member
Posts: 211
Joined: Sat May 01, 2010 5:07 pm

Post by allavivek »

chulett wrote:You can run any valid script or UNIX command as long as it is in your PATH or properly pathed. Not sure what's up with your leading "dot", that's certainly not needed, though. ...
Thank you...
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The dot can matter, as a reading of the man page for source will reveal.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Of course, it can matter but not in this specific case.
-craig

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