You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Question:

We would like to schedule file transfer from Application A (Solaris) to Application B (AS400), where Application A generates files with a timestamp ABC_25042014.txt in folder D:/A_Folder/.

This folder will contain a number of files - typically 25 - and JADE must only transfer those files with a timestamp for the current day and deliver them to Application B after they have been created.

The time at which the files to be transferred are created is not fixed and can be any time in the day.

The file size is around 100Mb.

Answer:

File Selection:

JADE uses "RegularExpressions", with a small extension. File selection should be specified using the "file_spec" parameter with a variable part for the timestamp.

For example:

    file_spec=^ABC_[date:ddMMyyyy].\txt$

This file_spec value will select all files in the source_folder (and in subfolders, if the recursive parameter is set to "true"), which have the current date as part of the filename. It is not necesssary to change tha parameter every day (smile)

File Generation:

If the time where the file is created is not fixed then a "file polling" could be specified. This is done by setting the "poll_*" parameters as shown, for example, for server to server transfer in our "Server to Server Transfer with Polling" FAQ. You can achieve a reliable solution using this approach together with the "steady state" function described in our "Check File for completeness Steady state" FAQ.

If the filenames on your AS/400 have a different syntax to the filename on the Solaris, JADE will be able to rename the files on the target server when the "target_replace" and "target_replacing" parameters are correctly set. A rename at the source, after transfer, could be possible as well.

This solution works for ftp, ftps and sftp and for any other JADE data provider, no matter what the file size is.

See also:

  • No labels