Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Find by Key using OnDemand (FNDKEYRDAR) command allows you to search for a particular document or segment that has been stored in the report specified in the REPORT parameter. If more than one document or segment satisfies the search, a list is shown and you can select which document or segment should be viewed. You can limit the documents or segments that are found by specifying a date range or by entering more that one key field. A value must be specified for at least one of the key fields on this command. This is intended as an API for the OnDemand key search function.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
REPORT | Report name | Character value | Required, Positional 1 |
RPTKEY1 | Key 1 value | Character value | Optional |
RPTKEY2 | Key 2 value | Character value | Optional |
RPTKEY3 | Key 3 value | Character value | Optional |
RPTKEY4 | Key 4 value | Character value | Optional |
RPTKEY5 | Key 5 value | Character value | Optional |
GROUP | Group search | *NO, *YES | Optional |
RPTDATE | Report date range | Element list | Optional |
Element 1: From date | Character value, *AVAIL | ||
Element 2: To date | Character value, *CURRENT | ||
OUTPUT | Output | *, *PRINT, *FAX | Optional |
Top |
Specify the name of the report to search.
This is a required parameter.
Note: If you press the F4 key for this parameter while prompting the command, a list of all the valid entries is presented to you.
Top |
Top |
Top |
Top |
Top |
Top |
Specifies if the search is for this report only or for all reports in the report group.
Top |
Specifies the earliest and latest dates of the reports that should be searched.
Element 1: From date
Element 2: To date
Top |
Specifies what should be done with the report when it is found.
Top |
Example 1: Simple Example
FNDKEYRDAR REPORT(CHECKSTMTS) RPTKEY1(251000022)
This command allows you to search for a particular OnDemand Spool File Archive document that is archived using the report definition name of CHECKSTMTS. The key value that you enter must correspond with the keys (keys 1 through 5) defined in the OnDemand Spool File Archive report definition.
Example 2: More Complex Example
FNDKEYRDAR REPORT(CHECKSTMTS) RPTKEY1(251000022) RPTKEY3(KATIE*)RPTDATE(19880616 20020816) OUTPUT(*PRINT)
This command is similar to Example 1 but shows the use of more than one key field/value and the *PRINT option.
Top |
*ESCAPE Messages
Top |