Previous Topic: CHECKPOINT and BACKOUT With VSAM FilesNext Topic: Preparing for Execution


Opening and Closing VSAM Files

A VSAM file is opened the first time a FOR construct is encountered that uses the specified access path. The base cluster is opened with update intent unless No Update was specified in the dataview definition, in the FOR construct, or at runtime. The file is not normally closed until the end of the run. However, if the base cluster is opened for read‑only access and a subsequent FOR construct allows updating, the file is closed and re‑opened with update intent.

VSAM data sets are protected by VSAM and, in the CICS environment, CICS. CA Ideal does not provide any other sharing or locking mechanisms.