Defina um valor excluindo o procedimento armazenado

// Call to the stored procedure, with an OUTPUT parameter
DECLARE @OutputParameter  datetime
       ,@ReturnValue      int

EXEC @ReturnValue= [YourStoredProcedure] [comma separated parameters if any] @OutputParameter OUTPUT
PRINT(@ReturnValue)
Code with bulbul