how to call unix script in a after job subroutine

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
srilaxmi
Participant
Posts: 22
Joined: Thu Feb 28, 2008 5:21 am

how to call unix script in a after job subroutine

Post by srilaxmi »

Hi,

I want to call a unix script with 2 parameters in a After job Sub Routine.
How can i do that?


Thanks,
Srilaxmi
Sri
tkbharani
Premium Member
Premium Member
Posts: 71
Joined: Wed Dec 27, 2006 8:12 am
Location: Sydney

Use ExecuteSh

Post by tkbharani »

For example you have a script as Check_File.sh then you can call it as follows.

1. Select ExecuteSh in AfterJobSubroutine and enter the following

<Script_Path>/<Script_Name>.sh #Parameter1# #parameter2#

The parameter should be declared in parameter list in job.

Example:
/u10/files/script/Check_File.sh #CurrDate# #PinCode#
Thanks, BK
Post Reply