Home Page for the TeradataForum

Archives of the TeradataForum

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

  <Prev Next>  
Next> Last>>  

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


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
     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..



  <Prev Next>  
Next> Last>>  
  Top Home Privacy Feedback  
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 27 Dec 2016