IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Line number in Flat File

    Posted 07/08/03 03:30 AM

    Hi,

    I’m using a WM FlatFile Adaptor to generate a flatfile. I would like to know is there any way where Flatfile Schema gives the linenumber at end/begining of the line in the file generated. Does anybody encountered the same and how they resolved it.

    Thanks in advance.


    #Integration-Server-and-ESB
    #webMethods
    #edi


  • 2.  RE: Line number in Flat File

    Posted 07/08/03 04:08 PM

    I would track it myself, and define a field for it. You can track it by using pub.math:addInts to add one to your counter - or you can use the $iteration variable in your loop.


    #webMethods
    #edi
    #Integration-Server-and-ESB


  • 3.  RE: Line number in Flat File

    Posted 07/08/03 05:00 PM

    To clarify Greg’s answer a bit - you should be using the iteration method of processing your file, described in the Handling Large Files section of the manual (page 34 in my version). This executes a loop once for each line in the file, allowing you to keep track of the line numbers.


    #webMethods
    #Integration-Server-and-ESB
    #edi