base.Channel.writeNoNL

Writes a string to the channel (without newline character).

Syntax

writeNoNL(
     string STRING )
  1. string is the character string to be written to the channel.

Usage

After opening a channel, use the writeNoNL() method to write a string to the channel, without a trailing newline character.

Important: Do not confuse the writeNoNL() method with the write() method. The first is provided to write raw character strings to the stream, while the second is designed to write records with formatted data and field delimiters. Note also that the Channel class provides the writeLine() method to write a string with a ending newline character.

The method raises error -6345 if the channel fails to write data.

Example

CALL ch.writeNoNL("Some text ...")