CL Command Reference - FNDKEYRDAR

CL Command List > FNDKEYRDAR Reference

Description:

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.


Examples:

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.