Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 21 May 2004 @ 13:55:30 GMT


     
  <Prev Next>   <<First <Prev
Next>
Last>>
 


Subj:   Re: Displaying a stored procedures out parameter..
 
From:   Anomy Anom

<-- Anonymously Posted: Friday, May 21, 2004 09:46 -->

Howdy,

When you CALL the proc from BTEQ (and QueryMan), the OUT params are returned as the aswerset.

So, you don't need a print statement. Just SET the OUT param to whatever you want to display.

Here is what my SP returns when called via Windows BTEQ (v. 8.02), I have 2 OUT params:

     < snip >
     /*
     **********************************************************************
     */
     /* CALL Validation STORED PROCEDURE
     */
     /*
     **********************************************************************
     */

     CALL FOO_PROC.SP_FOO_Validation('ITT','','',outReturnCode,outMessage);

     *** Procedure has been executed.
     *** Total elapsed time was 4 minutes and 9 seconds.

     outReturnCode outMessage
     ------------- -------------------------------------------------------------
                 0 No errors

     +---------+---------+---------+---------+---------+---------+---------+----
     < snip >


     
  <Prev Next>   <<First <Prev
Next>
Last>>
 
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023