# define work file attribute "append"

**URL:** <https://techcommunity.softwareag.com/t/define-work-file-attribute-append/183914>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Linux\
**Created:** [September 16, 2015, 1:28pm UTC](https://techcommunity.softwareag.com/t/define-work-file-attribute-append/183914 "2015-09-16T13:28:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hezi](https://avatars.discourse-cdn.com/v4/letter/h/a5b964/32.png) [@Hezi](https://techcommunity.softwareag.com/u/Hezi)\
**Post date:** [September 16, 2015, 1:28pm UTC](https://techcommunity.softwareag.com/t/define-work-file-attribute-append/183914/1 "2015-09-16T13:28:39Z")

</div>

Hi,

We ruuning csh script. first step write a work file, & the second need to open it to “append”.  
Can we defined the work file as “append” in the csh script or just in the program as;  
define work file 1 type ‘sag’ attributes ‘APPEND’?

Hezi

---

<div class="post-metadata">

**Author:** ![Ralph\_Zbrog](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ralph_zbrog/32/78_2.png) [@Ralph\_Zbrog](https://techcommunity.softwareag.com/u/Ralph_Zbrog)\
**Post date:** [September 16, 2015, 5:32pm UTC](https://techcommunity.softwareag.com/t/define-work-file-attribute-append/183914/2 "2015-09-16T17:32:07Z")

</div>

I am not a scripting expert, but what I have seen is the creation of a new file followed by a “cat” to put the old and new files together. Which method you choose (cat or APPEND) depends on your shop standards.

---

<div class="post-metadata">

**Author:** ![mwessjoh](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@mwessjoh](https://techcommunity.softwareag.com/u/mwessjoh)\
**Post date:** [September 21, 2015, 2:23pm UTC](https://techcommunity.softwareag.com/t/define-work-file-attribute-append/183914/3 "2015-09-21T14:23:24Z")

</div>

Hi,

you cann’t define a file as append or in append-Mode. Every program/process/skript must open the file in “append-mode”. In Natural you have to use “APPEND”, otherwise the file will be rewritten.

regards,

Markus Wessjohann

---

<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, 3:34pm UTC](https://techcommunity.softwareag.com/t/define-work-file-attribute-append/183914/4 "2021-04-02T15:34:14Z")

</div>


