Hi,
I have only just happened upon this thread as I only joined the forum(s) yesterday. Although I am not gonna comment on the approach taken, I feel I need to warn you of a potential problem. As the windows box is a little-endian machine, and the mainframe probably isn't, you may not need to...