Joined: 06 Jun 2008 Posts: 8410 Location: Dubuque, Iowa, USA
First, you need to understand that this is NOT a problem -- it is the way UNSTRING works!
Second, what needs to be done ON OVERFLOW depends upon the application. Sometimes, the application just wants the first (or first few) field(s) so the ON OVERFLOW can be ignored. Sometimes, the application needs all the data fields and hence a loop would be needed to UNSTRING the first field, move the remaining bytes over, and then repeating the UNSTRING until ON OVERFLOW no longer occurs. If there are a variable number of fields to be discovered, UNSTRING is not a great choice -- reference modification would probably be a better choice as it is less restrictive in how it works.