 |
 |
Archives of the TeradataForum
Message Posted: Fri, 22 Feb 2008 @ 18:49:34 GMT
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.
| |