# Open Workfile for write, but append output

**URL:** <https://techcommunity.softwareag.com/t/open-workfile-for-write-but-append-output/60141>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [September 6, 2005, 3:46pm UTC](https://techcommunity.softwareag.com/t/open-workfile-for-write-but-append-output/60141 "2005-09-06T15:46:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [September 6, 2005, 3:46pm UTC](https://techcommunity.softwareag.com/t/open-workfile-for-write-but-append-output/60141/1 "2005-09-06T15:46:36Z")

</div>

Is it possible to open an existing workfile for write without deleting it? My itention is, to append new lines to an existing workfile.

And: I don’t want to use a printfile…

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [September 6, 2005, 7:45pm UTC](https://techcommunity.softwareag.com/t/open-workfile-for-write-but-append-output/60141/2 "2005-09-06T19:45:04Z")

</div>

Ups! I’m working on a Linux-Computer, not on a mainframe.

OK. Wrong category, but the problem stays the same!

---

<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:** [September 7, 2005, 5:30pm UTC](https://techcommunity.softwareag.com/t/open-workfile-for-write-but-append-output/60141/3 "2005-09-07T17:30:05Z")

</div>

Hi Matthias,

To my knowledge this is not possible. This operating system do not have a DISP=MOD feature. ☹

You could possibly do following instead:

cat new-work-file \>\> existing-work-file  
rm new-work-file

---

<div class="post-metadata">

**Author:** ![anon29934956](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@anon29934956](https://techcommunity.softwareag.com/u/anon29934956)\
**Post date:** [September 7, 2005, 6:05pm UTC](https://techcommunity.softwareag.com/t/open-workfile-for-write-but-append-output/60141/4 "2005-09-07T18:05:05Z")

</div>

This feature has been requested already as enhancement proposal.  
:arrow: Please refer to: EP164 and EP2681.  
It is planned for the upcoming version Natural 6.2. 8)

---

<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:40pm UTC](https://techcommunity.softwareag.com/t/open-workfile-for-write-but-append-output/60141/5 "2021-04-02T14:40:16Z")

</div>


