how to run unix script from a PX stage

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
zulfi123786
Premium Member
Premium Member
Posts: 730
Joined: Tue Nov 04, 2008 10:14 am
Location: Bangalore

how to run unix script from a PX stage

Post by zulfi123786 »

hi
i need to run a script that will process the seq file which will be used in another job.
if i run the script from unix i think it runs on single node but if i can call the script in a datastage stage i think it will run on multiple nodes

please advise on this
keshav0307
Premium Member
Premium Member
Posts: 783
Joined: Mon Jan 16, 2006 10:17 pm
Location: Sydney, Australia

Post by keshav0307 »

if i can call the script in a datastage stage i think it will run on multiple nodes
and why do you think so???

it will run on head node only
Mike
Premium Member
Premium Member
Posts: 1021
Joined: Sun Mar 03, 2002 6:01 pm
Location: Tampa, FL

Post by Mike »

You could check out the possibility of using a wrapped stage... but automatically assuming that a unix script designed to operate on a sequential file will run fine in parallel is naive.

Mike
mk_ds09
Participant
Posts: 72
Joined: Sun Jan 25, 2009 4:50 pm
Location: Pune

Post by mk_ds09 »

What is your main purpose..?
to run the unix script to get the sequential file processing to next job ..

rite ?? :wink:

or u r trying to test the funtionality of how unix script is executed when used in the DS jobs..

When unix script is called from unix job, unix excutes it and it does not run in parallel.. ! this is what u r thinking u guess !

in DS job u can use script in before and after job routine depending on your requirement..!

hope this helps

--MK
Post Reply