How can I modify the script so that it can support multiple files?
Since your example already sends multiple files, presumably you are asking how to transfer a variable number of files to be determined at run time. There are a few options.
- Use a wildcarded filespec. All matching files will be transferred.
- Transfer an entire directory recursively.
- Dynamically generate the file transfer XML so as to include a filespec for each individual file.
- Use a monitor that starts file transfers based on trigger criteria.
Based on the update, the requirement is to pass a string containing file names. Most likely, you will want to use Option #3 above. Pass the string of file names to something that can parse them, then generate the XML. This can be done with shell scripting, or in Ant using something like ant-contrib, or many other ways. There is nothing in the XSD for MQMFT that allows specification of file names natively as a delimited string.