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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.