Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Retrieve Query Management Form (RTVQMFORM) command allows you to retrieve encoded form source records from a query management form (QMFORM) object. The source records are placed into a source file member that can be edited.
Form source can also be retrieved from a query definition (QRYDFN) object when the specified QMFORM does not exist.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
QMFORM | Query management report form | Qualified object name | Required, Positional 1 |
Qualifier 1: Query management report form | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
SRCFILE | Source file | Qualified object name | Required, Positional 2 |
Qualifier 1: Source file | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
SRCMBR | Source member | Name, *QMFORM | Optional, Positional 3 |
ALWQRYDFN | Allow information from QRYDFN | *NO, *YES, *ONLY | Optional |
Top |
Specifies the query management form object whose source is being retrieved.
This is a required parameter.
Qualifier 1: Query management report form
Qualifier 2: Library
Top |
Specifies the previously-created source physical file into which the encoded form source records are to be written.
This is a required parameter.
Qualifier 1: Source file
Qualifier 2: Library
Top |
Specifies the source physical file member into which the encoded form source records are to be written. If a source file member name is not specified, then the form name specified on the QMFORM parameter is used.
If the member existed before running this command, it is cleared before any source statements are written into it. If the member does not exist, it is created.
Top |
Specifies whether form information is taken from a QRYDFN object when a query management form (QMFORM) object cannot be found using the specified object name. Any information that has to be derived in this way is discarded when the command has completed processing. No query management object is created.
Top |
Example 1: Retrieving Encoded Form Source
RTVQMFORM QMFORM(RPTLIB/SALFORM) SRCFILE(FORMS) SRCMBR(EMPFORM)
This command retrieves the encoded form source from the form named SALFORM located in the RPTLIB library. The encoded form source records that are retrieved are placed into the newly created or cleared member EMPFORM in the first file named FORMS in the user's library list.
Example 2: Retrieving Source From Either the QMFORM or the QRYDFN
RTVQMFORM QMFORM(RPTLIB/SALFORM) SRCFILE(FORMS) SRCMBR(EMPFORM) ALWQRYDFN(*YES)
This command retrieves the encoded form source from the query management form (QMFORM) named SALFORM located in the RPTLIB library. If there is no QMFORM object named SALFORM in the RPTLIB library, then the form source is retrieved from the query definition (QRYDFN) named SALFORM in the RPTLIB library. The encoded form source records that are retrieved are placed into the first file named FORMS in the user's library list.
Top |
*ESCAPE Messages
Top |