Skip to Content
avatar image
Former Member

^M character to be removed

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Apr 21, 2010 at 12:37 PM

    NameA.endSeparator = ´0x0D´

    or something like this in FCC should help.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 21, 2010 at 11:22 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    Jul 22, 2010 at 08:53 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded