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}
Note: The variables shown in square brackets are optional.
If an error occurs when you are using DB2 Web Query Tool, a message window will appear and the message indicator circle in the top right corner of the DB2 Web Query Tool contents pane will flash red and green. It is solid green when there is no message to be viewed, and it will flash red and green when there is a message. Click the message indicator to view the message.