There are four commands that can be used with DB2 Web Query Tool via e-mail. They are as follows:
Run Query
cmd{run query [format:[html|csv|fixed_text|formatted_text|xml ]][rowlimit:<limit>][e-mail:<address>]<query name>}
Where:
· format is the format in which you want the results of your query displayed. This parameter is optional.
· rowlimit is the maximum number of rows you want returned in your results set. This parameter is optional.
· e-mail is the e-mail address where you want the results to be sent. This parameter is optional.
· query name is the name of the query that you want to run. Query names are case sensitive.
Run SQL
cmd{run sql [format:[html|csv|fixed_text|formatted_text|xml ]] [rowlimit:<limit>][e-mail:<address>]<sql text>}
Where:
· format is the format in which you want the results of your query displayed. This parameter is optional.
· rowlimit is the maximum number of rows you want returned in your results set. This parameter is optional.
· e-mail is the e-mail address where you want the results to be sent. This parameter is optional.
· sql text is the SQL statement that you want to run
Convert Result
cmd{convert result [format:[html|csv|fixed_text|formatted_text|xml]][rowlimit:<limit>][e-mail:<address>]<result name>}
Where:
· format is the format to which you want the result set converted. This parameter is optional.
· rowlimit is the maximum number of rows you want returned in your results set. This parameter is optional.
· e-mail is the e-mail address where you want the results to be sent
· result name the name of the result set that you want to convert. This parameter is optional. Result set names are case sensitive.
Help
cmd{help}
The variables shown in square brackets are optional.