The mqftsnd command is available with the File Transfer Application on WebSphere MQ for Windows, and WebSphere MQ for Linux (x86 platform) servers only.
Use the mqftsnd command to send a file from a WebSphere MQ server using the File Transfer Application.
>>-mqftsnd-- -q QueueName--+--------------+---------------------> '- -m QMgrName-' >--+--------------------+--+------+--+---------------+----------> '- -t TargetQMgrName-' '- -v -' '- -l MsgLength-' .- -p yes---. >--+------------+--+--------------+-- -f FileName-------------->< +- -p no----+ '- -s UserData-' '- -p queue-'
If a file is too large to be sent as a single message, the file is segmented into a number smaller messages, known as segments, and all these segments are transmitted instead. When all the segments reach their destination, the target queue manager reassembles them to form the original file.
Specify a value between 250 and the queue manager's maximum message length. To determine the maximum message length, use the MQIA_MAX_MSG_LENGTH selector with the MQINQ call.
The default value is 100000.
0 | Successful operation |
36 | Invalid arguments supplied |
40 | Queue manager not available |
69 | Storage not available |
71 | Unexpected error |
163 | Queue name required |
164 | Cannot open queue |
165 | Cannot open file |
166 | Cannot put to queue |
167 | No file name specified (Send) |
168 | Message length is too small to send data |
169 | Sending file has changed |
170 | Cannot get from queue |
171 | Cannot write to file |
172 | CorrelId is invalid |
173 | MsgId is invalid |
174 | No messages to receive |
175 | File for delete is not unique |
This command sends a file from the default queue manager, to the queue DEST.Q, located on queue manager QM2:
mqftsnd -q DEST.Q -t QM2 -f "My document.txt"
This command sends a file as non-persistent messages from queue manager QM1, to the queue DEST.Q, located on the default queue manager, setting the maximum segment size to 50000 bytes:
mqftsnd -q DEST.Q -m QM1 -l 50000 -p no -f "C:\My Downloads\My document.idd"
mqftapp | Run File Transfer Application |
mqftrcv | Receive file on server |
mqftrcvc | Receive file on client |
mqftsndc | Send file from client |
Notices |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
mqftsnd |