Sorry to waste everyone' time:I just hadn't close the file handles and presumably the data wasn't flushed.Duh. Egg on face.Llew