Commands are send through one of the following WindowsEnabler/MQSeries requests: STRWINPGM, STRPGMSEQ, STRCRTMDL, and STRRUNMDL. These requests, and their parameters are sent as a command line character string in an MQSeries message. Parameters are named and separated by whitespace. The general format of the command line is as follows:
<request> [<name1>(<value1>) … <nameN>(valueN>)]
Example
STRWINPGM CMD(a.exe) WAIT(*YES)
If a parameter contains a list of values, these values are separated by whitespace. Parameters that contain whitespace must be enclosed by single quotes. This is usually necessary in the CMD parameter of the STRPGMSEQ request, which specifies a sequence of commands.
Example
STRWINSEQ CMD('a.exe a.txt' 'b.exe b.txt')
Within a single command (such as 'a.exe a.txt'), parameters are separated by whitespace as well. If such a parameter contains whitespace, it must be enclosed by double quotes.
Example
STRWINSEQ CMD('a.exe "file a.txt"' 'b.exe "file b.txt"')
Single quotes and double quotes can be escaped by using a double double quote or a double single quote.
See the reference section of this manual for a complete description of all possible requests and their parameters.