Scenario 4. File Transfer

In this scenario, assume that you want to automate a file transfer:
  • You could begin by using the procedure discussed in the search scenario earlier to log on to a host system session.
  • Instead of using one of the copy functions (which are inefficient for copying many screens of data), your EHLLAPI program could call file transfer functions Send File (90) and Receive File (91) to transfer data.
  • Upon successful completion:
    • If the Send File (90) function finished executing, your EHLLAPI program could submit a batch job using either a copy function or the Send Key (3) function before logging off.
    • If the Receive File (91) function finished executing, your EHLLAPI program could start up a local application.