title: How do I get the return code from a stored procedure in Toad?
body: <p>I have a test procedure:</p>
  
  <pre><code>CREATE PROCEDURE bfmsp_testproc(@test CHAR(32) = NULL)
  AS
  BEGIN
    IF @test IS NULL
      RETURN
  
    IF @test = 'BadReturnCode'
      RETURN 1
  
    /* Bad test, should probably do something */
    PRINT 'Invalid test code'
    RETURN 1
  END
  </code></pre>
  
  <p>However, I cannot get the return code when I run it in Toad for Sybase.</p>
  
  <pre><code>bfmsp_testproc
  
  bfmsp_testproc 'invalid'
  
  bfmsp_testproc 'BadReturnCode'
  </code></pre>
  
  <p>There are no results sets (obviously).  I see the PRINT output in the Messages tab of the results.  However, I cannot find the return code anywhere in the output.  The return code is available in my application code, so I know it is coming from Sybase OK.</p>
  
  <p>Ideas?  Is there a setting somewhere I am missing to show this?  Or does Toad lack this feature?</p>