How to dynamically change the FTP Queue Pattern

Last post 05-15-2012 1:46 PM by dbyrdfc. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 10-17-2005 9:43 AM

    How to dynamically change the FTP Queue Pattern

    Hello,

    I would like to know if there is any way to get the file name that is being read by FTP Queue Messaging. Any help is appreciated.

    Thanks
  • 10-17-2005 9:45 AM In reply to

    Re: How to dynamically change the FTP Queue Pattern

    Hello,
    If there is no way to get the filename from an FTP Queue Message then is there any way to dynamically change the FTP Queue Pattern property.

    Thanks
  • 10-19-2005 4:51 PM In reply to

    Re: How to dynamically change the FTP Queue Pattern

    Hello,
    When a message object is written to a file with the PutMessage action, only the message body is written. The Serialize option indicates whether to write the message properties to a separate file with a .hdr extension. By default it is False.

    Incase your aim is to read a file from ftp and then write it to a different location with the same name, then you can make use of the Put Message property "File Name Format" and specify the value as %s

    Thanks & Regards,
    Suraj Naidu
  • 05-15-2012 1:46 PM In reply to

    • dbyrdfc
    • Not Ranked
    • Joined on 05-03-2012
    • Austin Tx
    • Posts 5

    Re: How to dynamically change the FTP Queue Pattern

    You can also retrieve this information now using : DJMessage object with sourcemsg.Properties("SourceName")

    Example code : fmsg.Properties("SourceName")

    Other property values can be determined using : The properties depend on the source of the DJMessage. You should be able to find all properties for a DJMessage using the following code (you can also modify it from MsgBox() to LogMessage() to get a copy-able list):

    For i = 0 to msg.PropertiesCount - 1

    MsgBox(msg.PropertyNames(i) & " = " & msg.Properties(i))

    Next i Although the actual properties of message from specific sources aren't documented, this code and more info on DJMessage objects are in the help here: http://docs.pervasive.com/products/integration/di/wwhelp/wwhimpl/js/html/wwhelp.htm#href=rifl/DJMessage_Object.html



    David Byrd

    Former Senior Integration Engineer at Pervasive,

    http://integrationcomputing.blogspot.com

Page 1 of 1 (4 items)