Hi again,
by 'last operation' I meant any operation, be it exec sql or otherwise. It seems there must be a goback immediately after the open cursor.
yup, after the OPEN CURSOR I can't even check the sqlcode or my result set seems to disappear.
In the calling program, after the exec sql call xxxx, I check the sqlcode to see if it is 466, when it is, then I do an associate locators followed by an allocate cursor using the locator.
l8r, eh,
Ralph