ERROR - The program opens a file with ORGANIZATION UNDEFINED, but does not specify FOR INPUT. Specify FOR INPUT in the OPEN statement. You cannot write to a file with an undefined file organization.