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.  Write new lines in a custom log file

    Posted 08/26/14 09:14 AM

    I want to log in a separate file.
    So I am using pub.file:stringToFile
    But, how can I insert CR LF (new lines) in the string? (I tested with \r\n but doesn’t work)
    Is there any way to do that (or another way to write information in a custom log file with newlines)?
    Thanks.


    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: Write new lines in a custom log file

    Posted 08/26/14 10:24 AM

    Can you share your sample data that you are trying to write to file.


    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Write new lines in a custom log file

    Posted 08/26/14 12:37 PM

    You can try use the tokenize (in the delimiter input setValue box hit enter and save the box) and create the new lines and then makeString service.

    HTH,
    RMG


    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: Write new lines in a custom log file

    Posted 08/27/14 09:56 AM

    Thank you, rmg.
    It seems to work, but I have found a simpler solution.

    • In a MAP Step, put “Set Value” to my “textline” variable.
    • in the editor, open the “large editor” and write %textline% then press ENTER.
    • Close the large editor and the editor of “set value”.

    #Integration-Server-and-ESB
    #webMethods


  • 5.  RE: Write new lines in a custom log file

    Posted 08/27/14 10:09 AM

    Good to see you figured it out yourself :slight_smile:


    #webMethods
    #Integration-Server-and-ESB