Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,

I'm executing Stored Proc in Sybase in the following way. It's executing fine. I've to print the OUT value.
SQL
DECLARE @MyCount INT
DECLARE @MyDate DATETIME 
EXEC proc_MyProcName_update @MyDate OUT, @MyCount OUT
SELECT @MyCount, @MyDate

But somehow I'm unable to run this in Perl & to get the return values in two different variables. And then I wanna print the variables. Could you please help me out ?
PERL
$SP="proc_MyProcName_update";
print SQL "exec $SP\n" ;
print SQL "go" ;
$var = `$ISQLPATH/isql -U$USER -P$PASSWORD -S$SERVER -D$DATABASE -i$SQL`;
print "\n$var\n";
print OUT $var;

Please help me.
Thanks in Advance.
Posted
Updated 24-Aug-13 3:19am
v3

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900