Call Perl Program

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
Madhu_Mitha
Participant
Posts: 1
Joined: Tue Oct 19, 2004 7:58 am

Call Perl Program

Post by Madhu_Mitha »

Hi ,

Can anybody suggest me a way to call a Perl Program from a DataStageJob -- as an After-Job Routine or a Functional Routine or any other way !!!! :?

Thanks In Advance,
Madhu :)[size=12][/size][color=blue][/color]
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

You can use ExecSH or execute. In a routine

Code: Select all

execute 'SH -c "MyPerl.pl"' capturing Output returning RtnValue


The variable Output has what would of went to the screen. RtnValue is the exit code of the Perl script.
Mamu Kim
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You can also use DSExecute - check the online help.
-craig

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