Invalid header record for internal file. Usually caused by porting an internal file between machines with Intel and non-Intel CPUs, without running the file conversion program to change the header record.
kfname and name segments of your open statement specify the same file name
Remedy:
End the program and run the proper conversion program (either wb2unix or wb2dos).