your logic is absolutely fine techday. I am unable to incorporate it .
as of now i have done it like this
set var 1 = funcname(param).
the function i am calling does have a returns keyword and also teh function where i am calling this also has a returns keyword. Would you mind helping me with the syntax on how to call a function inside a function and assigning the output to a variable which is already declared.
function or stored proc ?
check samples in sample directory below sqllib
Best Regards, Guy Przytula
Database Software Consultant
Good DBAs are not formed in a week or a month. They are created little by little, day by day. Protracted and patient effort is needed to develop good DBAs.
Spoon feeding : To treat (another) in a way that discourages independent thought or action, as by overindulgence.
DB2 UDB LUW Certified V7-V8-V9-V9.7-V10.1-V10.5 DB Admin - Advanced DBA -Dprop..
Information Server Datastage Certified http://www.infocura.be
its regarding functions and checked the samples and info centre. They are pretty basic and what i require is calling a function inside another function and assigning its value to another variable which is declared.