How can I handle an empty VSAM ESDS dataset with VISION:Results?

Document ID : KB000024818
Last Modified Date : 14/02/2018
Show Technical Document Details

VISION:Results' automatic cycle requires an input file to work properly. You can use an explicit READ in combination with the STATUS field statement to determine the status of the last READ. (See Reference Guide pages 14-7 and 6-25).

When errors occur, it always helps to have the complete message, so be sure Patch 5074M is applied to your system so the text portion of the VSAM error will display.

In the error message DYL-V30E VSFGMT - GET      ERROR 0874, the 0874 is from VSAM and indicates:

RC 08
VSAM 74 = Trying to update an empty dataset

Though it does not need to contain data, the VSAM cluster must be initialized as well as defined. When the cluster is not initialized, the abend occurs immediately without any access to the STATUS keyword.

Customizing patch 50111M has been developed to return an end of file status when the VSAM cluster has not been initialized. This allows users to handle the situation programmatically with the STATUS keyword.

Maintenance for VISION:Results 5.0 for VSE is not available via Support Online, so please open an issue requesting them if you do not have Patch 5074M, or would like Patch 50111M.