IBM Support

Put and Multiple Put (mput) Commands

Question & Answer


Question

Put and Multiple Put (mput) Commands

Answer

Put and Multiple Put (mput) Commands

Use the put command to upload files to Sterling File Transfer Service. Use the Multiple Put (mput) command with the wildcard character (*) to upload multiple files.

Some FTP clients require you to manually acknowledge each file name when executing the mput command. This makes automating FTP scripts difficult because it requires you to be present when the script is executed. You can usually turn off this feature by sending the prompt command prior to any mput command.

Sample put Command

The following is a sample FTP session using the put command.

Client command:

put output.edi

Server response:

200 PORT command successful.150 Opening data connection.226 Transfer complete. 715 bytes sent.

Sample mput Command

The following is a sample FTP session using the mput command to upload all files ending with .xls.

Client command:

mput *.xls

Server response:

200 PORT command successful.150 Opening ASCII mode data connection for output.xls.150 Opening data connection.226 Transfer complete.ftp: 1215 bytes sent in 0.00Seconds 1234.00Kbytes/sec.200 PORT command successful.150 Opening ASCII mode data connection for another.xls.150 Opening data connection.226 Transfer complete.ftp: 406 bytes sent in 0.00Seconds 1234.00Kbytes/sec.200 PORT command successful.150 Opening ASCII mode data connection for somethingelse.xls.150 Opening data connection.226 Transfer complete.ftp: 52369 bytes sent in 0.00Seconds 1234.00Kbytes/sec.

"

[{"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Product":{"code":"SS73G6","label":"Sterling Total Payments for Financial Services"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
08 December 2018

UID

ibm10758875