When creating a file with P0457D, why is the file missing the carriage returns?

Symptoms
Changes
Cause
Solution

Symptoms

When creating a file with P0457D, why is the file missing the carriage returns?

Changes

N/A

Cause

See below

Solution

The text file is created by the B0400520 business function and the carriage return will be different depending on the operating system of the computer where the business function was run. Find below the end of line conventions for Windows and Unix:

OS Decimal Hexadecimal English
--------- ------- ----------- --------
Windows 13, 10 0D, 0A Carriage Return, Line Feed (CR,LF)

Unix/ 10 0A Line Feed

Linux/ AS400
You can find these codes by looking at the file with a binary text editor.

Usually the issue occurs when examining a file created in a non-Windows operating system from Windows.

Numerous bugs have been entered on this issue including Bug 11026570 and Bug 10978679, however, they have been closed as functioning as designed and the explanation was that the program should use the operating system convention. As a workaround, the bank file can be converted with a text editor. For instance in Notepad++, you can select that from the menu under Edit\EOL Conversion. Another workaround would be to map the business function B0400520 through OCM to run on a server with the desired End of Line convention. For instance, if you need to use the Windows convention, map it to run on a Windows server.