db2 9.7 fp 4 / windows
Hi,
With your assistance, I have created a procedure to export data.
when I do a small select statement with sysproc.admin_cmd it works fine.
eg:
create procedure test()
language sql
begin
call sysproc.admin_cmd('export to my.del of del select * from table');
end
But when I add a condition for the strings
WHERE NAME="JOHN" it compiles successfully. but when I call , it gives error.
"SQL3022N an SQL error -206 occurred while processing SELECT in the action sting parameter"
When I tried with numeric value, again works fine.
(where amount=100);
This is the full procedure which compiles successfully, but gives error when you call.
create procedure test()
language sql
BEGIN
call sysproc.admin_cmd('export to my.del of del select * from table
where name="JOHN" ');
END
can you please assist, I cant find any information in infocenter.
Even I raised a PMR , IBM said they are testing in their test system and it may take a week to come back as this type of support is not included in the support contract.
Thanks,
Hi,
With your assistance, I have created a procedure to export data.
when I do a small select statement with sysproc.admin_cmd it works fine.
eg:
create procedure test()
language sql
begin
call sysproc.admin_cmd('export to my.del of del select * from table');
end
But when I add a condition for the strings
WHERE NAME="JOHN" it compiles successfully. but when I call , it gives error.
"SQL3022N an SQL error -206 occurred while processing SELECT in the action sting parameter"
When I tried with numeric value, again works fine.
(where amount=100);
This is the full procedure which compiles successfully, but gives error when you call.
create procedure test()
language sql
BEGIN
call sysproc.admin_cmd('export to my.del of del select * from table
where name="JOHN" ');
END
can you please assist, I cant find any information in infocenter.
Even I raised a PMR , IBM said they are testing in their test system and it may take a week to come back as this type of support is not included in the support contract.
Thanks,