# Rewrite or update line in WORK FILE

**URL:** <https://techcommunity.softwareag.com/t/rewrite-or-update-line-in-work-file/101047>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Linux\
**Created:** [July 22, 2012, 1:56am UTC](https://techcommunity.softwareag.com/t/rewrite-or-update-line-in-work-file/101047 "2012-07-22T01:56:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Claudio\_Muller](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/claudio_muller/32/518_2.png) [@Claudio\_Muller](https://techcommunity.softwareag.com/u/Claudio_Muller)\
**Post date:** [July 22, 2012, 1:56am UTC](https://techcommunity.softwareag.com/t/rewrite-or-update-line-in-work-file/101047/1 "2012-07-22T01:56:08Z")

</div>

Hi,  
i do create, write lines and read  
in WORK FILE format SAG.

I can find and change a record in a file SAG or some other format work-files?

---

<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:** [July 22, 2012, 9:16am UTC](https://techcommunity.softwareag.com/t/rewrite-or-update-line-in-work-file/101047/2 "2012-07-22T09:16:26Z")

</div>

Think of Natural Work files as tape files. Natural has no equivalent to COBOL’s REWRITE statement. To change even one WORK record means that you have to rewrite the entire file.

---

<div class="post-metadata">

**Author:** ![Claudio\_Muller](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/claudio_muller/32/518_2.png) [@Claudio\_Muller](https://techcommunity.softwareag.com/u/Claudio_Muller)\
**Post date:** [July 22, 2012, 11:45pm UTC](https://techcommunity.softwareag.com/t/rewrite-or-update-line-in-work-file/101047/3 "2012-07-22T23:45:05Z")

</div>

WORK FILES has no type that can then be rewritten?

Only with Adabas  
or other databases?

---

<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:** [July 23, 2012, 8:22am UTC](https://techcommunity.softwareag.com/t/rewrite-or-update-line-in-work-file/101047/4 "2012-07-23T08:22:31Z")

</div>

Yes, work files are sequential files, not direct access.

---

<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:02pm UTC](https://techcommunity.softwareag.com/t/rewrite-or-update-line-in-work-file/101047/5 "2021-04-02T15:02:12Z")

</div>


