Carriage Return and Line Feed for transfers between Unix to Windows

Document ID:  TEC1131273
Last Modified Date:  06/06/2017
{{active ? 'Hide' : 'Show'}} Technical Document Details

Products

  • CA XCOM Data Transport

Releases

  • CA XCOM Data Transport:Release:11.6
  • CA XCOM Data Transport:Release:12.0

Components

  • CA XCOM DATA TRANSPORT GATEWAY FOR WINDOWS:XCGWIN
  • CA XCOM DATA TRANSPORT GATEWAY FOR SOLARIS/UNIX:XCGSOL
  • CA XCOM DATA TRANSPORT GATEWAY FOR PC LINUX:XCGX86
  • CA XCOM Data Transport for Linux PC:XCLX86
  • CA XCOM Data Transport for Linux zSeries:XCLX90
  • CA XCOM Data Transport for LAN Server NetWare:XCNETW
  • CA XCOM DATA TRANSPORT MGMNT CENTER FOR WINDOWS:XCMWIN
  • CA XCOM DATA TRANSPORT MGMNT CENTER FOR PC LINUX:XCMX86
  • CA XCOM Data Transport for HP/UX:XCUHP9
  • XCOM DATA TRAN FOR HP-UX IA64:XCUHPI
  • XCOM WIND 95:XCWN95
  • CA XCOM Data Transport for SINIX for TRANSIT:XCUSIN
  • CA XCOM Data Transport for Sun Solaris Operating System:XCUSOL
  • XCOM FOR SUNOS SUNLINK:XCUSUN
Introduction:

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

Instructions:

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.

 

Please help us improve!

Will this information enable you to resolve your issue?

Please tell us what we can do better.

{{feedbackText.length ? feedbackText.length : '0'}}/255

{{status}}

Not what you were looking for?

Search Again >

Product Information

Support by Product >

Communities

Join a Community >