cancel
Showing results for 
Search instead for 
Did you mean: 

^M character to be removed

Former Member
0 Kudos

Hi,

Xi is unable to process a file which is having ^M at the end of each line records. But in the file this character is not visible, I can view this character at unix. At sender file channel its unable to process this file. So how to remove this character, and process the file. Please suggest.

Regards,

Nutan

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

we have done this through a script which removes the ^M and then XI processes. But if someone can get this resolved by XI capability, then please do post.

stefan_grube
Active Contributor
0 Kudos

NameA.endSeparator = ´0x0D´

or something like this in FCC should help.

Former Member
0 Kudos

Hi Stefan,

In FCC we can give this parameter if it will be visible in file.But it's not visible because its a new line character only in windows.So, this parameter doesnot work.

Regards,

Nutan

stefan_grube
Active Contributor
0 Kudos

Former Member
0 Kudos

Hi Nutan,

It seems UNIX treats the end of line differently than other operating systems.

One way could be removing the ^M in the file before PI processes.

a suggested way it here

http://www.tech-recipes.com/rx/150/remove-m-characters-at-end-of-lines-in-vi/

Regards,

Srinivas

Former Member
0 Kudos

Hi Srinivas,

At present we have done this through a script which removes the ^M and then XI processes. But I just want to check whether we can handle this through any XI capability.

Regards,

Nutan