Since our databases are not the same, I had to modify the code some to get it to run, my modified version is below. The only 'real' change I had to do was to remove the word 'browse' from your def frame statement because that would not pass syntax here. (I'm on CHARACTER V9.1d)
That aside, it...