0 votes
in VSAM by
What modes of access are available for the VSAM files?

1 Answer

0 votes
by

The following three modes of access are available for VSAM files:

Sequential Access: Enter the code ACCESS IS SEQUENTIAL in the FILE-CONTROL entry for sequential access. Records within indexed files can be accessed based on the key field selected (either the primary key or an alternate key), and records within relative files can be accessed based on their relative record numbers.

Random Access: Enter the code ACCESS IS RANDOM in the FILE-CONTROL entry for random access. Records within indexed files can be accessed based on the value entered in a key field, and records within relative files can be accessed based on the value entered in the relative key.

Dynamic Access: Enter the code ACCESS IS DYNAMIC in the FILE-CONTROL entry for dynamic access. In dynamic access, sequential and random access are both combined within the same program. By using dynamic access, a single program can be written to perform both sequential and random operations, allowing some records to be accessed in sequential order and others based on their keys.

Related questions

0 votes
asked Aug 27, 2022 in VSAM by Robin
0 votes
asked Aug 27, 2022 in VSAM by Robin
0 votes
asked Aug 27, 2022 in VSAM by Robin
...