I have created the below sp in T-SQL sybase 15, when I am trying to execute it using unnamed block, I am not getting the out parameter value,drop procedure sproc_emp1create proc sproc_emp1 ( @in_emp_no int, @o_ename varchar(10) output ) as begin declare @v_ename varchar(10) select @v_ename=ename from ora_syb_emp where empno=@in_emp_no select @o_ename=@v_ename select @o_ename end
here I am able to print the sp's @o_ename, from the main sp, but I am not able to print from the below calling program "select @ocall_ename" it is printing null values declare @ocall_ename varchar(10) begin exec sproc_emp1 1001, @ocall_ename select @ocall_ename end
-Neil