Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 22 Feb 2008 @ 18:49:34 GMT


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


Subj:   3816: The positional parameter list has too few values
 
From:   kishore

Hi All,

Can any one tell me why I am getting error at macro execution?

In macro I want pass only Procedurename the remaining parameter need as optional.

     Create set table DebugSP(id integer generated by default as identity(start
     with 1 increment by 1), ProcedureName varchar(500),tableName    varchar(500)
     default null, Description1 varchar(1000) default    null,value1
     decimal(10,2) default null);

     Replace MACRO DebugMacro(ProcedureName varchar(500),tableName varchar(500)
     default NULL,Description1 varchar(1000) default NULL,value1
     Decimal(10,2) default NULL)
     AS (
        Insert into DebugSP(ProcedureName,tableName,Description1,value1)
     values(TRIM(ProcedureName),Coalesce(tableName,'n/a'),Coalesce(Descript
     ion1,'n/a'),Coalesce(value1,0));
     );

     EXEC debugMacro ('abcdef');

     Error:
        3816: The positional parameter list has too few values.

Regards

Kishore KK.



     
  <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