Vsam error return code 160.

Community Help: Vsam File Status 160 - Vsam error code

Share your own experience     View front page

If you are getting this vsam related error code 160 returned when trying to read a file via repro on the mainframe, then this error is probably caused because on z/os a vsam file cannot be empty. There are many ways to resolve this, some put 1 record in the file or a dummy record in the file that is never actually processed but guarantees the vsam file will not always be empty in any condition. This 160 error can always be displayed in your output from other reasons other then just repro with an empty file, but repro seems to be when this error is discovered most often as they attempt to backup the vsam file or copy it to flat file for processing, etc .