Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PRINT OUT/DBMS_OUTPUT.PUT_LINE 1

Status
Not open for further replies.

DFW1999

Programmer
Nov 11, 2002
31
US
Hi,
I am looking for any functionality like PRINT OUT/DBMS_OUTPUT.PUT_LINE in my procedures/macros in order to debug my code in TeraData.
Can someone give me an example code or steps to setup this functionality in TeraData QueryMan.
thanks
 
Hi all,
I am still waiting for anything like "dbms_output.put_line" functionaliy in Teradata.
Any sample script would be very help full.
thanks
 
Hi,
Teradata supports PRINT in its stored procedures

The output of the PRINT command goes to the DBW DBS/IO window which requires privlegded Access to the teradata Server to run.

The Other way is to debug a Teradata Stored Procedure is to create your own Log table and log what you want into it and after the stored procedure completes

sel * from Logtable;

to see what went on during your script.

just remeber The first thing the stored procedure should do is Drop the log table's previous contents.


You can go so far as to make a stored procedure for inserting into the Log Table so that you don't have to rewrite the code ever time you write a new procedure.


These options are explained in Chapter 4 of Vol 6 of the SQL reference manual.

All manuals are available at

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top