Natural batch log file

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

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