By default, Natural insert the first byte carriage control on every write/print ouput sentence.
I need a CMPRTxx FB file having information on first byte.
Is there any way to do that using write/print sentences ?
Hi, if I understand correctly what you are wanting to do is suppress writing out the carriage control. If that’s correct then there is a sample in the documentation here:
It involves using a define printer statement that allocates a separate (n+1) spool for the control characters.
Example code from the documentation:
DEFINE PRINTER (1) OUTPUT ‘CMPRT01’
DEFINE PRINTER (2) OUTPUT ‘CCONTROL’
WRITE (1) ‘TEST’
WRITE (2) NOTITLE ‘+TEST’
Thank you very much for your help.
I am so happy…