The REPLACE parameter causes
-
a) KSDS records to be replaced by an input record with the same key
-
b) ESDS records to be replaced by an input record with the same RBA
-
c) RRDS records to be replaced by an input record with the same RRN
-
d) a and c
The REPLACE parameter in VSAM allows RRDS (Relative Record Dataset) records to be replaced by input records with matching RRN (Relative Record Number). KSDS uses keys, ESDS uses RBA, but only RRDS uses RRN for record identification. Option C is correct.
For a VSAM Relative Record Data Set (RRDS), the REPLACE parameter causes an existing record to be overwritten by an incoming record that shares the same Relative Record Number (RRN), since RRDS records are identified by their fixed slot position rather than a key or address. This differs from KSDS (keyed) and ESDS (addressed by RBA), which use different identifiers for matching records to replace.