I want to fecth rows and update them in RPG (free). Using old style opcodes I'd do that:
READE %KDS(KEY) FILE;
processRecord();
UPDATE FILE;
Problems come with SQL opcodes:
EXEC SQL FETCH MYCURSOR INTO :VAR;
processRecord();
????
Using EXEC SQL UPDATE FILE... SET... WHERE KEY...
return an SQLCOD error.
Is there a particular technique?