Guest_imported
New member
- Jan 1, 1970
- 0
My SP outputs 2 values as follows : -
exec sp "1","2","3"
X Y
-- --
abc 0 where "1" "2" & "3" are the run-time variables.
I want to use the value of Y(always either 0 or 1) in
a subsequent query.
I cannot amend the SP to declare an extra variable with
OUTPUT option set.
My on-line SYBASE SQL manual suggests : -
declare @pset char(1)
exec sp "1","2","3", @Y = @pset output
but this doesn't work.
Can anyone help ?
exec sp "1","2","3"
X Y
-- --
abc 0 where "1" "2" & "3" are the run-time variables.
I want to use the value of Y(always either 0 or 1) in
a subsequent query.
I cannot amend the SP to declare an extra variable with
OUTPUT option set.
My on-line SYBASE SQL manual suggests : -
declare @pset char(1)
exec sp "1","2","3", @Y = @pset output
but this doesn't work.
Can anyone help ?