Skip to Main Content
Due to the recent acquisition by IBM, the Adabas & Natural Ideas Portal does not contain ideas from products ApplinX and EntireX any longer. Please refer to the IBM Ideas Portal for these products from now on (IBMid required). Existing content will be migrated during the next few weeks.
Status Future consideration
Categories Natural (NAT)
Created by Raul Hurtado
Created on Jul 15, 2021

Deactivation of buffer or modification of buffer size.

Hi,

We created this incident:5447577 CMPRINT log file records are NOT available on the fly

In it, we requested:

CMPRINT log file records are NOT available on the fly

1. Under IBM z/OS Natural, CMPRINT log file records are available on the fly – i. e. in real time – while job is running,

2. Under Windows Natural, they are not, one has to wait till the end of the job to get the first records of the CMPRINT file.

This does not help, especially when some processes are not running properly.

Is there any way to see logs 'in real time' and not only when the program ends?


As response we got:

Hello Raul,

Yes, you're right on Mainframe, the output of a Write or Display statement are written to CMPRINT, is flushed immediately and can be seen directly in the output file.

On Open Systems the output is not flushed immediately. Instead, each output is collected in the internal Natural 32K buffer which is flushed when it is full or when a report is closed.

The 32K buffer is a cache buffer inside of Natural which is used to increase the performance of file I/O. Currently there is no possibility to deactivate the usage of this buffer or to modify the buffer size.

The buffer is flushed either when it is full or when the report is closed.

I suggest to open an Enhancement Request asking for this if it is needed.

Best Regards,


Use Case In Natural for windows sripts (natural batch jobs)
Created on Brainstorm 06/08/2021 06:45
Brainstorm ID 9202