Calling Perl Script

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
pravin1581
Premium Member
Premium Member
Posts: 497
Joined: Sun Dec 17, 2006 11:52 pm
Location: Kolkata
Contact:

Calling Perl Script

Post by pravin1581 »

Hi All,

We have a source file on which we need to do some cleansing by a perl script and then use the downstream data for further processing, how can we call a perl script in a DataStage job.

Thanks in advance.
rameshrr3
Premium Member
Premium Member
Posts: 609
Joined: Mon May 10, 2004 3:32 am
Location: BRENTWOOD, TN

Post by rameshrr3 »

Cant you call the perl script using a before job routine (ExecSH) and write results to an intermediate file? After that the job can process your file..

HTH
Ramesh
pravin1581
Premium Member
Premium Member
Posts: 497
Joined: Sun Dec 17, 2006 11:52 pm
Location: Kolkata
Contact:

Post by pravin1581 »

rameshrr3 wrote:Cant you call the perl script using a before job routine (ExecSH) and write results to an intermediate file? After that the job can process your file..

HTH
Ramesh
For running the perl script do we need any library file.
wahi80
Participant
Posts: 214
Joined: Thu Feb 07, 2008 4:37 pm

Post by wahi80 »

Nope
pravin1581
Premium Member
Premium Member
Posts: 497
Joined: Sun Dec 17, 2006 11:52 pm
Location: Kolkata
Contact:

Post by pravin1581 »

wahi80 wrote:Nope
But some perl compiler is required.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Perl itself is required. Obviously. :wink:

You don't have to worry about any compiler / interpreter silliness, it's all handled for you automagically. Thought this might help:

http://www.perl.com/doc/FMTEYEWTK/comp-vs-interp.html
-craig

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