2.4.1.27.5 Examples

 m_FileAssign -d ANY MT_LOC01 ${DATA}/ftp_file_loc1
 m_FileAssign -i SYSIN
      open host
      user user1 pw1
      put MT_LOC01 DIR/file2
      quit
      _end
 m_Ftp -i INPUT

Note:

Some notes concerning the lines in the “SYSIN” file.

- The first line must be “open”:

format: open <HOSTNAME or ADDRESS>

example: open 172.20.12.21

- The second line must set the user ID and the password if the “-n NETRC” parameter is not set.

format: user <user> <password>

When the “-n NETRC” parameter is present, it implies that a “.netrc” file exist. This file identifies the user ID and the password to be used.

- The following lines are ftp’s commands (one per line) as get, put, ...

- The last line must be “quit”:

format: quit