Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 07 Oct 2010 @ 12:42:43 GMT


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


Subj:   Positional parameter list has too few values in a macro
 
From:   Asish Muralidas

Hi,

I created a macro

     //Similar to SQL Server procedure as we doing a migration//
     Create macro testmacro
     (
     P_id int default null,
     P_name varchar(100) default null,
     P_dept varchar(100) default null
     )
     As
     Select :p_id,:P_name,P_dept;
     )
     ;
     Exec testmacro();

I am getting the following error;

[3816] The positional parameter list has few values.


If executing with Exec testmacro(P_id = 1); // now it is working but I need similar functionality as of sql server

Anyone please help me on this..


Regards

Asish



     
  <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