Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Processing Flat Files | Sending and Receiving Flat Files | Submitting a Flat File to Integration Server via FTP | Getting Results from an FTP’d Document
 
Getting Results from an FTP’d Document
The results from a service executed by an FTP request are written to the same virtual directory to which the flat file was initially FTP’d. The name of the output file to which results are written is sourcefile.txt.out.
You retrieve this document using the FTP “get” command. For example, if you put a document called “PurchaseOrder.txt” on the Integration Server, you would use the following FTP command to get its results:
getPurchaseOrder.txt.out
“PurchaseOrder.txt.out” is the name of the flat file initially FTP’d to the service. This file contains the value of the output variable ffreturn of the invoked service.
It is a good practice to make each file name that you FTP to the Integration Server unique (perhaps by attaching a timestamp to the name) so that you do not inadvertently overwrite other FTP’d documents or their results during an FTP session.
Important:
When you end the FTP session, the Integration Server automatically deletes the original file and its results from your session.