I was looking at this stored proc and was confused over this code. Here is a snippet:
alter PROCEDURE [xxx]
@Lang tinyint = 0
,@CurrUserID varchar(10) = null
DECLARE @errnum int
... //I removed several lines
exec @errnum = _OrganizationDocketRate_Fetch @Lang, @CurrUserID
What I think is that there is no point to @errnum. Is this true? i.e. I don't see how it can be returned.