CRLF

Is there a way to remove the CR LF from a write statement?

CRLF on a mainframe? CRLF is for Open Systems; mainframes use logical record length (LRECL).

Within your program you can’t do anything about CRLF or LRECL for a report (output from WRITE, DISPLAY, PRINT, etc.), but you can “remove” them for data files (WRITE WORK). Prior to the first WRITE WORK, code

DEFINE WORK FILE 01 TYPE "UNFORMATTED"

An option for Open Systems is to write the report to a file, then remove CRLF with a subsequent script or Natural program.