CL Command Reference - STRQMPRC
CL Command List > STRQMPRC Reference
Description:
The Start Query Management Procedure (STRQMPRC) command allows you to run a query management procedure that was saved as a member in a source file.
Examples:
Example 1: Running a Query Management Procedure
STRQMPRC SRCMBR(MYPROC) SRCFILE(RPTLIB/PROCFILE)
This command starts the query management procedure stored as the member named MYPROC in the source file named PROCFILE in the RPTLIB library.
Example 2: Taking Information From QRYDFN Objects
STRQMPRC SRCMBR(MYPROC) SRCFILE(PROCFILE) ALWQRYDFN(*YES) ALWDSPLAY(*NO)
This command starts the query management procedure stored as the member named MYPROC in the first file named PROCFILE in the library list for the job. Query and form information is allowed to be taken, as needed, from QRYDFN objects when the procedure statements are processed. No reports are shown but they can be printed if the user specifies a print request. Objects are replaced without confirmation if confirmation is not requested by the user. The procedure ends with some errors if processing locates a global variable that is not set or if confirmation was requested before replacing objects that already exist.