Patent ID: 7281166

Claim:
A method for handling an input error in a computer system using an input/output (I/O) library, the method comprising: determining, at run time by said input/output library, if there is an error in input data of a data file for a user computer program, wherein said data file is on a logical unit of said computer system; and said input data of said data file is processed by said user computer program during execution of said user computer program; passing, by said input/output library, information regarding context of said error to a user subroutine designated by said user, wherein said user subroutine handles said error upon said determining finding said error in said input data; calling, by said user subroutine, an error-handler for said error in said input data, said error handler making a change to said error in said input data in said data file wherein said data file includes changed input data in place of said error in said input data; and repeating said determining and passing for said changed input data in said data file by said input/output library.