I have created a working stored procedure under udb8.1, however when I try
to create the procedure under DB2 Universal Database Workgroup edition,
version 7, I get an syntax error on a RETURN; statement
IF (something= 'x') THEN
return;
END IF
If I then comment out the RETURN; , I get a ERROR SQL1109N The specified DLL
c:\...\db2udp.dll could not be loaded. I do not find the DLL on the machine.
The stored proc uses the following scalar functions RTRIM, TRANSLATE,
UPPER,LENGTH and uses dynamic SQL...
PREPARE xsqlStmt from sqlText; open cursor1;
fetch cursor1 into myvar; close cursor1;
Unfortunately, I cannot post the actual SP here as it is part of a
commercial product. Is there a list of functions, etc. that are not
supported in version 7? Why is dbw trying to load db2udp.dll?
Bill |