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.  Using date in file name

    Posted 04/07/20 07:41 PM

    I have a flow where we write a flat file out to an archive before sending it to a customer. As of right now I have the filename hardcoded in the writefile service step (filename.txt). What I’d like is to have the file written out as filename_20200407.txt. What’s the easiest or best way to have the “_YYYYMMDD” added to the file name?

    Thanks in advance,
    Damon


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: Using date in file name

    Posted 04/08/20 12:22 PM

    Hi Damon,

    please check the IS Built-In-Services Reference for services under pub.date-Folder.

    After creating the date with one of these services you can map it to the writeFile service by using “Perform pipeline variable substituion” on the map.

    The Input should then look like “filename_%date%.txt” where date is the output from the previous date service.

    Regards,
    Holger


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services