Carriage Return and Line Feed for transfers between Unix to Windows
search cancel

Carriage Return and Line Feed for transfers between Unix to Windows

book

Article ID: 10181

calendar_today

Updated On:

Products

XCOM Data Transport XCOM Data Transport - Windows XCOM Data Transport - Linux PC XCOM Data Transport - z/OS

Issue/Introduction

What happens with the End-of-line-character(s) during a XCOM-transfer between Windows and Unix?



Environment

Release: XCOM..01300-11.6-XCOM Data Transport-for AIX
Component:

Resolution

On Windows the End-of-line is indicated by the two characters: [CR] (Carriage Return - x'0D') and [LF] (Line Feed - x'0A'). On Unix-Flavours the End-of-Line is indicated by [LF] (Line Feed - x'0A') only.

When you transfer a file from Unix to Windows and use CODE_FLAG=ASCII or CODE_FLAG=UTF8 then the [LF]-Line Feed Characters are translated into [CR][LF] Carriage Return-Line Feed by Windows, NOT by XCOM!. Only if you use CODE_FLAG=BINARY the transfer is done byte by byte and the [LF] are not touched by Windows.

When you transfer a file from Windows to Unix and use CODE_FLAG=ASCII or CODE_FLAG=UTF8 then the [CR][LF]-Carriage Return-Line Feed Characters are translated into [LF] Line Feed by the Unix Operating System, NOT by XCOM!. Only if you use CODE_FLAG=BINARY the transfer is done byte by byte and the [CR][LF] is not touched by Unix.