# Work files

**URL:** <https://techcommunity.softwareag.com/t/work-files/79576>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [November 24, 2008, 4:56pm UTC](https://techcommunity.softwareag.com/t/work-files/79576 "2008-11-24T16:56:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RJL](https://avatars.discourse-cdn.com/v4/letter/r/7ab992/32.png) [@RJL](https://techcommunity.softwareag.com/u/RJL)\
**Post date:** [November 24, 2008, 4:56pm UTC](https://techcommunity.softwareag.com/t/work-files/79576/1 "2008-11-24T16:56:43Z")

</div>

Hi All,

I am new to Natural adabas. I wrote one simple program to read and write work files:

There are 2 datasets : EMPLOYEE and DATA. First i am reading these 2 files and i am getting correct results but while writing work file 3, jcl is showing some error.

Error message says that :IGD17101I DATA SET TMC.EMPL.LMN  
NOT DEFINED BECAUSE DUPLICATE NAME EXISTS IN CATALOG and NAT1500 Open for WORK file 3 failed S013.

---

<div class="post-metadata">

**Author:** ![Klaus\_Sponagel](https://avatars.discourse-cdn.com/v4/letter/k/3bc359/32.png) [@Klaus\_Sponagel](https://techcommunity.softwareag.com/u/Klaus_Sponagel)\
**Post date:** [November 24, 2008, 6:49pm UTC](https://techcommunity.softwareag.com/t/work-files/79576/2 "2008-11-24T18:49:33Z")

</div>

It is the DISP=(NEW,KEEP,OWN) for CMWKF03. Use DISP=SHR if the dataset already exist.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:51pm UTC](https://techcommunity.softwareag.com/t/work-files/79576/3 "2021-04-02T14:51:11Z")

</div>

Closed on April 2, 2021, 2:51pm UTC


