Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

procedure creation error due to a variable that is being referenced. - forum topic by sgkeela

$
0
0

I am getting error for procedure creation where i wanted to resolve the value for the tmpval (which is part of the table name in the drop table sytax)

the tmpval is being set but is not being referenced .how can i make it work ?

 

REPLACE PROCEDURE  send_tst_param

  (  

   OUT Message     integer

  )

 

 Begin

 

 Declare tmpval VARCHAR(6) ;

 

 select     cast(cast(add_months(current_date,-1) as date format  'yyyymmdd')as varchar(6))  into tmpval

 

 

;

 

sel count(1) into message from  gdw_stg_dev3.pmt_brand_d_tmpval;

 

 

End;

 

Forums: 

Viewing all articles
Browse latest Browse all 14773

Trending Articles



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