5.2.2 Using the FTPService

Whether you are writing your client application in RDML / RDMLX or in a 3GL such as RPG, you have to complete the same basic steps.

For example, an application to put a file to a remote FTP server would typically issue the following sequence of commands:

JSM(X)_OPENJSM(X)_COMMANDs

     SERVICE_LOAD

        CONNECT

        LOGIN

        CHGDIR

        BINARY

        PUT

        QUIT

     SERVICE_UNLOAD

JSM(X)_CLOSE

The steps to get a file from a remote FTP server would be very similar, but uses the GET command instead of a PUT.

Refer to Java Service Manager Clients for the command details that apply to your chosen development language.