Follow these steps to use the command line:
For example,
run query ObjectTracking (form=ObjectTrackingForm export report to c:\qmftrack.rep windows notepad c:\qmftrack.rep
This example executes a query called ObjectTracking using the form called ObjectTrackingForm for report generation. The procedure exports the report to a file called qmftrack.rep at the local system in the c:\directory. Then, in the Windows Notepad c:\qmftrack.rep line of the procedure, the saved report file is opened using Notepad.
For example,
c:\procedure1.prc
"C:\Program Files\IBM\QMF for Windows\qmfwin.exe" /IServer:DB2AIX /IProcname:DB2INST1.Procedure1 /IUserID:db2inst1 /IPassword:db2inst1
"C:\Program Files\IBM\QMF for Windows\qmfwin.exe" /IServer:DB2AIX /IProcfile:"c:\Procedure1.prc" /IUserID:db2inst1 /IPassword:db2inst1