crazycobol wrote:Thank you Dick for the reply.
Do I do the following:
move 200080000 to ckey.
Then I do:
if ckey equal 20007000
then delete rec.
Mmmm... by then, ckey won't be 20007000(0) any longer.
Really, how you have to do it depends on what is driving your progam.
You don't really "change a key" on a file. You do delete the old key, and add the new key.
How do you know you need to change the key? That provides your method. If you are identifying someone from solely the file itself, then conside what Dick has suggested.
If you have some sort of transaction file, exactly what do you have?
So, how do you know the key has changed.... ?