i HAVE OPEN ONE FILE IN IN INPUT-OUTPUT MODE. IT IS READIND AS WELL AS ONE IT'S FEILD IS REWRITTEN WHICH IS THE TIMESTAMP FEILD. AFTER ONE READ IT WILL GO TO OPEN CURSOR, FETCH CURSOR CHECKING SOME CONDITIONS AND ACCORDING TO THAT INSERTING SOME VALUES.. NOW, WHEN THE THIS IS A LAST READ... I want to rewrite the timestamp....... what is the code for this?
IF you want to reewrite the record after reaching the end of the file/end of cursor (presuming you are using db2). check for the sql condition of the cursor i.e 100 the rewrite your rec with timestamp .
if it is file use code 10 then rewrite the record..