... WITH { NATIVE
| SMART
| UNIX
| WINDOWS } LINEFEED ... .
1. ... WITH NATIVE LINEFEED
2. ... WITH SMART LINEFEED
3. ... WITH UNIX LINEFEED
4. ... WITH WINDOWS LINEFEED
: These additions determine which line end marker is used for text files or legacy text files. If these additions are used, the profile parameter abap/NTfmode is ignored. Simultaneous specification of the values "UNIX" or "NT" in the addition TYPE is not permitted.
If these additions are not used, the line end marker is determined as follows, depending on the operating system of the current application server:
If an addition WITH NATIVE|SMART|UNIX|WINDOWS LINEFEED
is used, this setting can be changed for the open file using the statement
SET DATASET. If neither of the additions is used, the line end marker also cannot be changed using SET DATASET.
... WITH NATIVE LINEFEED
: This addition defines the line end marker independently of the access type according to the operating system of the application server, i.e. "LF" for Unix OS390 or OS400, and "CRLF" for MS Windows.
The line end marker is interpreted according to the current codepage. If a code page is explicitly specified
using the addition CODE PAGE,
the characters of the line end marker must exist be available or be written in accordance with this code page.
: The addition WITH NATIVE LINEFEED is intended for editing
files on an application server that can also be accessed by other means. The addition receives the appropriate line end marker without the program needing to know the operating system.
... WITH SMART LINEFEED
: This addition depends on the access type:
: The addition WITH SMART LINEFEED is intended for the
generic editing of files in heterogeneous environments. The line end marker is recognized and set for different formats. The use of this addition is the best solution for most application cases.
... WITH UNIX LINEFEED
: The line end marker is set to "LF" regardless of the access type and operating system of the application server.
The line end marker is interpreted according to the current code page. If a code page is specified explicitly
using the addition CODE PAGE,
the characters of the line end marker must be available or be written according to this code page.
: The addition WITH UNIX LINEFEED is intended for editing
Unix files in which the specific line end markers are to be retained, even if the operating system of the current application server is MS Windows.
... WITH WINDOWS LINEFEED
: The line end marker is set to "CRLF" regardless of the access type and operating system of the application server.
The line end marker is interpreted according to the current code page. If a code page is specified explicitly
using the addition CODE PAGE,
the characters of the line end marker must be available and be written according to this code page.
: The addition WITH WINDOWS LINEFEED is intended for use with MS Windows files in which the specific line end marker is to be retained, even if the operating system of the current application server is Unix, OS390 or OS400.