To export a QMF object in temporary storage to a CMS file, enter:
EXPORT objecttype TO filename
For example, to export a query in temporary storage to a file, named REPORTX, enter:
EXPORT QUERY TO REPORTX
If you do not specify a file type or file mode, QMF uses the object type, in this case QUERY, as file type, and A as the file mode.
To export a QMF object in the database to a file, enter:
EXPORT objecttype objectname TO filename
For example, to export a query that is named MYREP4Q in the database to a file that is named RPT4Q, enter:
EXPORT QUERY MYREP4Q TO RPT4Q