I have a program where I do a keyed SETGT and then a READP to get the last sequence number in an item's notes. Then I do a key listed CHAIN to see if a certain entry already exists. If it does exist I need to do an update. If it doesn't exist I add 1 to the sequence number and write a new record.
Here's the problem. After I do the CHAIN it sees that a record is already there. But when I update the record the file pointer doesn't set itself to where I just chained. It stays where the SETGT put it. How do I reset the file pointer???
Here's the problem. After I do the CHAIN it sees that a record is already there. But when I update the record the file pointer doesn't set itself to where I just chained. It stays where the SETGT put it. How do I reset the file pointer???
Comment