Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

teradeta sql - response (2) by dnoeth

$
0
0

Hi Henry,
you mean within a script in (based on your tags) BTEQ?
There's ACTIVITYCOUNT, but you can't use it outside of .IF ACTIVITYCOUNT  :-(
 
Possible solutions:
- write a NOTIFY exit in C and use it before the SQL statement (check the BTEQ manual for details)
- wrap it in a SP
 
Or simply use DBQL for it (which is probably enabled on your system), there's only one drawback: DBQL is cached, to be able to run this insert within your script you need to ".HANG 600" seconds (or whatever is used on your system for flushing it).
Or set a QueryBand to easily identify the job(s) and then extract the info from dbc.QryLogV a while after the script(s) finished.
 
Dieter
 


Viewing all articles
Browse latest Browse all 27759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>