Hi All,
I want to execute the below call procedure statement using a dynamic sql within a For loop of stored procedure.
call dbc.sysexecsql ('CALL dbname.'||proc_name_variable||'('||v1||','||v2||','||v3||','||v4||','||''||timestamp_variable||''||');' ) ;
But When i try to compile the procedure i am getting the following error.
'Missing/Invalid SQL statement'E(5407):Invalid operation for DateTime or Interval.'
please suggest any possible solutions on this. I need to enclose the timestamp variable within quotes while calling that internal procedure.
Thanks,
Bala.
Forums: