In reply to Chris Hemedinger.

Old thread but I read recently you can avoid end of file issues putting any subsetting IF before the SET line.