How to suppress leading zeros

Home Page Forums BizTalk 2004 – BizTalk 2010 How to suppress leading zeros

Viewing 2 reply threads
  • Author
    Posts
    • #17305

      Hello,

        is there a way to suppress leading zeros when converting a flat file.

       I get a string like this:  0000000023

      And I just want to pass the 23 onto the database.

       

      Any ideas ?

       

      Thanks,

      Larry H.

    • #17308

      Did you try to simply convert it to a number?

    • #17313

      Larry,

      BizTron's idea seems pretty good.

      I was thinking (a) a map with a functoid, or (d) a custom pipeline component – both very heavy for what you want. You could also do it in an expression shape, I guess.

      When you actually put the value in the database you could also fix it then.

      John D.

      • #17441

        The table I was inserting to was set to a decimal so it chopped off all the leading zeros.  Thanks for the replies !

Viewing 2 reply threads
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.