Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
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.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
SRCMBR | Source member | Name | Required, Positional 1 |
SRCFILE | Source file | Qualified object name | Optional, Positional 2 |
Qualifier 1: Source file | Name, QQMPRCSRC | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
RDB | Relational database | Simple name, *NONE, *CURRENT | Optional |
RDBCNNMTH | Connection Method | *DUW, *RUW | Optional |
USER | User | Name, *CURRENT | Optional |
PASSWORD | Password | Character value, *NONE | Optional |
NAMING | Naming convention | *SYS, *SQL, *SAA | Optional |
ALWQRYDFN | Allow information from QRYDFN | *NO, *YES, *ONLY | Optional |
CMDSRCFILE | Command source file | Single values: *NONE Other values: Qualified object name |
Optional |
Qualifier 1: Command source file | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
CMDSRCMBR | Source member | Name, *FIRST | Optional |
ALWDSPLAY | Display screens | *YES, *NO | Optional |
Top |
Specifies the source file member that contains the query management procedure to be run.
This is a required parameter.
Top |
Specifies the source file that contains the query management procedure to be run.
This is a required parameter.
Qualifier 1: Source file
Qualifier 2: Library
Top |
Specifies the relation database that is accessed during the processing of this command.
Top |
Specifies the connection method to use.
Top |
Specifies the user name sent to the remote system when starting the conversation.
Top |
Specifies the password to be used on the remote system.
Top |
Specifies the naming convention used for naming objects.
Top |
Specifies whether query or form information is taken from a query definition (QRYDFN) object when no query management query (QMQRY) or query management form (QMFORM) object can be found using the specified object name. Any information that has to be derived in this way is discarded when the common programming interface (CPI) command in the procedure is completed. No query management objects are created.
Top |
Specifies the command source file that query management uses to run a command procedure. A command procedure can only contain query management set commands which can set application variables as well as query management variables that start with the 'DSQ' value.
The supported DSQ variables are:
Single values
Qualifier 1: Command source file
Qualifier 2: Library
Top |
Specifies the command source member that query management uses to run a command procedure. A command procedure can only contain query management set commands which set variables that start with the 'DSQ' value.
Top |
Specifies the display mode used. The query management session is set to interactive mode if ALWDSPLAY(*YES) is specified. If ALWDSPLAY(*NO) is specified, then the session is set to batch mode. The mode is automatically set to batch when running this command in a batch environment.
Top |
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.
Top |
*ESCAPE Messages
Top |