As you work with VSAM datasets, you may encounter abends during the process. You can find the status of a VSAM file by its VSAM file status code. VSAM files need to have at least one data record loaded into them before they can be opened for input or updating.