L2 run-time switch

Determines the character(s) to be used as the record terminator when reading a line sequential file.

Properties:
Default: Off
Type: File handling
Comments:

When off (-L2), x"0A" or "0D0A"is taken as the record terminator. This provides compatibility with COBOL for Windows.

When on (+L2), x"0A" is taken as the record terminator. This provides compatibility with earlier versions of this system, correctly reading files written using a WRITE ... AFTER ADVANCING statement.

This switch only affects read operations and not write operations.

Related Topics: