Empty VSAM ESDS dataset with VISION:Results
search cancel

Empty VSAM ESDS dataset with VISION:Results

book

Article ID: 24818

calendar_today

Updated On:

Products

Vision:Results

Issue/Introduction

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

 

Resolution

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.

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, please open an issue requesting them if you do not have Patch 5074M, or would like Patch 50111M.

Additional Information

See Reference Guide pages 14-7 and 6-25