I wish the save sections of data within my application at regular intervals so that an "Undo" type operation is possible. Currently this works fine but the user has to wait while the data is written to the undo file. I thought that the asynchronous write option would be ideal for the scenario so I've coded all open and write statements to include the ASYNCHRONOUS='YES' option. When the program tries to save the file it returns an error status = 8 part way through a loop that's writing a section of the data. The error code implies that there is a error of the program or a bug that should be reported.
Am I using the feature correctly, and if so has anyone got any ideas what may be going wrong.