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.

 View Only
Expand all | Collapse all

FTP File patter with date

  • 1.  FTP File patter with date

    Posted Fri May 16, 2008 06:09 PM

    hi all,

    I am facing a problem while listing files with certain pattern over a FTP session.

    The files in the server will be in the following format:
    _0_ABC.txt
    _1_ABC.txt
    like this …

    Now, I need to list all the files which are of current date.

    I am using the service, pub.client.ftp.ls service. I have tried with so many patterns possible, but could not generate the one needed.

    Could anybody help me in this?
    Thanks a lot.


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


  • 2.  RE: FTP File patter with date

    Posted Mon May 19, 2008 05:23 PM

    First step: Call the service pub.date:getCurrentDateString and set its pattern to yyyyMMdd.

    In the next step call the service pub.client.ftp.ls and set the field filenamepattern to %value%*.txt and Check the option “perform variable substitution”.

    This should give you the list of of all the files on the ftp from Today.

    HTH,
    Bhawesh Singh.


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