FILE_BUF parameter if file not opened
search cancel

FILE_BUF parameter if file not opened

book

Article ID: 368831

calendar_today

Updated On:

Products

IDMS

Issue/Introduction

Does IDMS allocate the buffer pages specified in FILE_BUF even if the specified file is not opened?

Environment

Release: All supported releases.

Resolution

FILE_BUF parameters are only used if the associated BUFFER is opened. The BUFFER is only opened if one or more of the assigned FILEs are opened, and FILEs are only opened if the associated AREA is READIED by the local batch program.

The saved FILE_BUF values are only processed when opening a buffer. So if a buffer is never opened, it should not allocate space for that buffer. For each file connected to the buffer, the saved FILE_BUF statements are searched and if a matching name is found, it saves the value in the file control block. Later it adds the value to the buffer's defined number of pages when allocating the storage.