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
  • 1.  pub.client.ftp:ls filenamepattern syntax

    Posted Wed January 27, 2016 01:20 PM

    Hi community,

    please i need to list files using a pattern like that :[0-9]{4}-[0-9]{2}-[0-9]{2}_taux.txt

    but it dosn’t work when i make it in the filenamepattern=[0-9]{4}-[0-9]{2}-[0-9]{2}_taux.txt

    when i write *_taux.txt it works,
    what is the problem with my pattern??

    Regards,
    thanks,


    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: pub.client.ftp:ls filenamepattern syntax

    Posted Thu January 28, 2016 03:11 AM

    Can you list a few sample file names with above pattern along with OS details.

    Thanks,


    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: pub.client.ftp:ls filenamepattern syntax

    Posted Thu January 28, 2016 04:28 AM

    Hi thank you for yr reply,
    My file name is : 2016-01-12_taux.txt

    Remote os: windows unfortunatly without sftp
    Locale server : Aix where IS exist,
    Regards,


    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: pub.client.ftp:ls filenamepattern syntax

    Posted Fri January 29, 2016 07:26 AM

    hi,

    no one have an idea about what i need :cry: , nobody ever use the regular expression of Date to liste files???

    Regards,
    Thanks,


    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: pub.client.ftp:ls filenamepattern syntax

    Posted Fri January 29, 2016 09:29 AM

    As per the BIS guide it says “filenamepattern String Optional. Pattern that specifies the names of the files to include in the list (for example, *.txt).” I am not quite sure if the input supports regex.

    Did you have a look at the BIS?


    #webMethods
    #Integration-Server-and-ESB


  • 6.  RE: pub.client.ftp:ls filenamepattern syntax

    Posted Wed June 22, 2016 06:29 AM

    Hello,

    have you solved this problem, I have the same

    Thank you !


    #Integration-Server-and-ESB
    #webMethods


  • 7.  RE: pub.client.ftp:ls filenamepattern syntax

    Posted Wed June 22, 2016 08:32 AM

    hi lalita,

    yes i resolve it what kind of pattern you have?
    for me i didn’t use filenamepattern, bellow what i did:

    pub.client.sftp:login
    pub.client.sftp:ls
    loop over ‘/dirList’
    –/dirList/FileName:BRANCH
    ----%/dirList/fileName%=/[0-9]{4}-[0-9]{2}-[0-9]{2}_taux.txt/:SEQUENCE
    -------pub.client.sftp:get(and i put this on remotefile : /WMESBREC/ServeurDist/%dirList/fileName%)

    tell me if that resolve yr issue

    Regards,


    #Integration-Server-and-ESB
    #webMethods