View previous topic :: View next topic
|
Author |
Message |
niharika19
New User
Joined: 23 Nov 2005 Posts: 3
|
|
|
|
Hi ALL,
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? |
|
Back to top |
|
|
rajandhla
Active User
Joined: 18 Oct 2005 Posts: 182 Location: Luton UK
|
|
|
|
Niharika,
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..
hope this helps
regards
jai |
|
Back to top |
|
|
|