Page 1 of 1

Call Perl Program

Posted: Tue Nov 16, 2004 11:20 pm
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]

Posted: Wed Nov 17, 2004 7:33 am
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.

Posted: Wed Nov 17, 2004 8:26 am
by chulett
You can also use DSExecute - check the online help.