Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 19 May 2003 @ 16:07:43 GMT


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


Subj:   Re: Problem in Macro
 
From:   Dieter N�th

Anomy Anom wrote:

  I have a problem in macro that I am storing current_timestamp(0) in to database in different queries but I am getting same timestamp for every query. Any body know how fix that I want to get timestamp which time that query executed.  



You can't fix it, because a macro is optimized like a multistatement: The current_timestap is resolved only *once* (when the first step is dipatched?), so even if the first query runs for 10 minutes, the second quer uses the same timestamp.

If you want different timestamps, use a bteq batch or a stored procedure.


Dieter



     
  <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