---
title: "Top Reasons Why ESDS VSAM File Allows Duplicate Values"
description: "ESDS VSAM why it allows duplicate records whereas KSDS does not allows read for more details."
url: https://srinimf.com/2015/11/09/vsam-how-esds-allows-duplicate-record/
date: 2015-11-09
modified: 2026-10-09
author: "Srini"
image: https://i0.wp.com/srinimf.com/wp-content/uploads/2015/11/why-esds-allows-duplicates.jpg?fit=1200%2C700&ssl=1
categories: ["VSAM"]
tags: ["ESDS VSAM Duplicate records", "VSAM tips and tricks", "Why ESDS Allows Duplicates"]
type: post
lang: en
---

# Top Reasons Why ESDS VSAM File Allows Duplicate Values

An entry-sequenced data set (ESDS) acts as a sequential file organization but has the advantages of being under control of VSAM, some use of direct processing, and password facilities.

Related[Best Answer Why VSAM ESDS not Used in Batch Programs](https://srinimf.com/2010/08/12/vsam-esds/)

---

> The ESDS data set is in the sequence in which it is created, and you normally (but not necessarily) process from the start to the end of the data set.

**How ESDS VSAM File Allows Duplicates**

1. The sequential processing of an ESDS by RBA is known as addressed access, which is the method you use to create the dataset.
2. RBA is the method to access records in ESDS.
3. ESDS is not concerned with keys. So the ESDS dataset may legally contain duplicate records.
4. Assume an ESDS containing records with RBAs 001, 003, 004, and 006. The dataset would appear as follows:| 001 | 003 | 004 | 006 |
5. Each record in ESDS are identified by the RBA address. So the record may be duplicate but RBA unique.

**[How to](https://srinimf.com/2011/10/15/pli-declaring-arrays/) Use ESDS Files**

ESDS for tables that are to load into programs, for small files that are always in ascending sequence, and for files extracted from a KSDS that are to be sorted.

**Related Posts**

- [How to Handle VSAM files in PL1 language](https://srinimf.com/2017/08/07/pli-these-are-the-best-ways-for-vsam-files/)DateAugust 7, 2017
- [VSAM: KSDS, ESDS, LDS, RRDS Differences and Their Uses](https://srinimf.com/2012/05/16/vsam-ksds-esds-lds-rrds-and-their-uses/)DateMay 16, 2012
- [How to Read VSAM File Randomly in COBOL](https://srinimf.com/2020/03/29/7-quick-tips-on-mainframe-vsam-files/)DateMarch 29, 2020

### Share this:

-
- [Tweet](https://twitter.com/share)
- [![](https://i0.wp.com/assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png)](https://www.pinterest.com/pin/create/link/?url=https%3A%2F%2Fsrinimf.com%2F2015%2F11%2F09%2Fvsam-how-esds-allows-duplicate-record%2F&media=https%3A%2F%2Fi0.wp.com%2Fsrinimf.com%2Fwp-content%2Fuploads%2F2015%2F11%2Fwhy-esds-allows-duplicates.jpg%3Ffit%3D1200%252C700%26ssl%3D1&description=Top%20Reasons%20Why%20ESDS%20VSAM%20File%20Allows%20Duplicate%20Values)
-
- [Share on Tumblr](https://www.tumblr.com/share)
- [Share on WhatsApp (Opens in new window) WhatsApp](https://srinimf.com/2015/11/09/vsam-how-esds-allows-duplicate-record/?share=jetpack-whatsapp)
- [More](#)
-

- [Print (Opens in new window) Print](https://srinimf.com/2015/11/09/vsam-how-esds-allows-duplicate-record/?share=print)
- [Share on Reddit (Opens in new window) Reddit](https://srinimf.com/2015/11/09/vsam-how-esds-allows-duplicate-record/?share=reddit)
- [Share on Telegram (Opens in new window) Telegram](https://srinimf.com/2015/11/09/vsam-how-esds-allows-duplicate-record/?share=telegram)
- [Email a link to a friend (Opens in new window) Email](mailto:?subject=%5BShared%20Post%5D%20Top%20Reasons%20Why%20ESDS%20VSAM%20File%20Allows%20Duplicate%20Values&body=https%3A%2F%2Fsrinimf.com%2F2015%2F11%2F09%2Fvsam-how-esds-allows-duplicate-record%2F&share=email)
-

### Like this:

Like Loading…
