# Natural batch log file

**URL:** <https://techcommunity.softwareag.com/t/natural-batch-log-file/190452>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Linux\
**Created:** [August 30, 2016, 10:02am UTC](https://techcommunity.softwareag.com/t/natural-batch-log-file/190452 "2016-08-30T10:02:21Z")\
**Posts on this page:** 3\
**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:** [August 30, 2016, 10:02am UTC](https://techcommunity.softwareag.com/t/natural-batch-log-file/190452/1 "2016-08-30T10:02:21Z")

</div>

Hi,

While running a batchmode, a log file is not written to system file until the script ends.  
Is there a way to force write a log file even the scripts is not ended yet?  
This is very important, while there is an endless loop, but if I will kill the process, I will not see any log file.

With Regards,  
Hezi

---

<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:** [February 22, 2017, 2:46pm UTC](https://techcommunity.softwareag.com/t/natural-batch-log-file/190452/2 "2017-02-22T14:46:46Z")

</div>

Hi Hezi,

I think you’re using WRITE WORK FILE to fill a log, right? WRITE WORK FILE is buffered by Natural to minimize I/Os.  
Of course you can open+write+close your WORK FILE frequently in append mode.

If you are on Linux/Unix I would think about using syslogd or something like that to do loggin properly.

Regards

Matthias

---

<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:36pm UTC](https://techcommunity.softwareag.com/t/natural-batch-log-file/190452/3 "2021-04-02T15:36:51Z")

</div>


