HI,
I have an ipl file which contains Database code for fetching the value.I am using this ipl file in my workflow as a external task.
if i run this ipl thro command line its works perfectly,but if i run thro workflow its giving error at the time of preparing the statement.
my ipl will look like this,
use DBI;
my $db = "dbi

DBC:imss";
my $username = "user";
my $auth = "pasword";
# Query to fetch the information
my $statement = 'SELECT count(*) FROM CD_SCOPES';
my $value;
my $dbh = DBI->connect($db, $username, $auth);
my $st = $dbh->prepare($statement);
$st->execute();
while (($value) = $st->fetchrow_array)
{
$scope_hierarchy = $value;
}
$dbh->disconnect;
its giving error in the following line,
my $st = $dbh->prepare($statement);
what may be the problem?Any suggestions.
If any one have done the same type of task please share the same.
Thanks
Rathina