unix script in ds 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
san_dwh
Participant
Posts: 17
Joined: Tue Dec 28, 2010 9:05 am
Location: hyd

unix script in ds job

Post by san_dwh »

how to call unix script in ds job?
Ravi.K
Participant
Posts: 209
Joined: Sat Nov 20, 2010 11:33 pm
Location: Bangalore

Post by Ravi.K »

you can call at before and After Job subroutinue.
Cheers
Ravi K
Sreenivasulu
Premium Member
Premium Member
Posts: 892
Joined: Thu Oct 16, 2003 5:18 am

Post by Sreenivasulu »

Can you pls change the 'subject' apprpriately next time ?

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

Post by chulett »

Done. Two times now.
-craig

"You can never have too many knives" -- Logan Nine Fingers
daignault
Premium Member
Premium Member
Posts: 165
Joined: Tue Mar 30, 2004 2:44 pm
Contact:

Post by daignault »

You can execute a Before/After routine. You may also use the "External" stage on your Datastage desktop to execute a routine.

Finally, you can create a wrapper BuildOP for execution of an external routine.

Cheers,

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

Post by chulett »

The answer really depends on what it does and when you need to call this - once? Several times? Once for each row of data through a job? (yes, people have allegedly 'needed' to do this) Hence the myriad suggestions.
-craig

"You can never have too many knives" -- Logan Nine Fingers
PaulVL
Premium Member
Premium Member
Posts: 1315
Joined: Fri Dec 17, 2010 4:36 pm

Post by PaulVL »

You can also open a Command Sequencer and that is your command line prompt to execute a script.

If you are a GRID shop, you might not want to do it that way, you could use an external source stage (don't quote me) and make it sequencial. That way the script happens on one of your GRID servers rather than your Conductor / Head Node.
Post Reply