Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 15 Sep 2004 @ 16:08:46 GMT


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


Subj:   Create Stored Procedure from inside a BTEQ Script
 
From:   Mark Kirk

I'm trying to automate the creation of some stored procedures and I would like to do it via a BTEQ script. Is this possible or is there another way? Forgive me is this is obvious, but a fairly new to Teradata.

for example if this is my script below, I'm getting this error "*** Failure 3706 Syntax error: Invalid SQL statement. Statement# 1, Info=33"

     .RUN file = C:\NCR\Logon\DBC.txt;

     REPLACE PROCEDURE SLAKE.Proc01()
     BEGIN
         DECLARE BusinessCloseDate DATE;
         DECLARE BusinessCloseDateMonthEnd DATE;
         DECLARE RecCount INTEGER;
     END;


     .QUIT ERRORCODE;

Thanks,

Mark Kirk
Data Architect/Database Administrator
Absolute Technology Solutions



     
  <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