Find Report using OnDemand (FNDRPTRDAR)

Where allowed to run: Interactive environments (*INTERACT *IPGM *IREXX *EXEC)
Threadsafe: No
Parameters
Examples
Error messages

The Find Report using OnDemand (FNDRPTRDAR) command presents the OnDemand logo display, with options for the user to specify report name and report date range for a report search. Optionally you can specify the date range for the user by entering values in the RPTDATE parameter of this command. This command is intended as an API for the report retrieval function. It can be used on a user defined menu to show the Select Report display.

Top

Parameters

Keyword Description Choices Notes
REPORT Report name Generic name, name, *SELECT Optional, Positional 1
RPTDATE Report date range Element list Optional
Element 1: From date Character value, *AVAIL
Element 2: To date Character value, *CURRENT
DSPRPTSLT Display report selection *YES, *NO Optional
Top

Report name (REPORT)

Specifies the name of the report or report group that you want to find.

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.

*SELECT
The OnDemand logo screen is displayed for selections to be made.
generic*-report-name
Specify the generic name of the reports to find.
report-name
Specify the name of a report to find.
report-group
Specify the name of a report group. This will find all the reports that are part of the group.
Top

Report date range (RPTDATE)

Specifies the earliest and latest dates of the reports that should be searched.

Element 1: From date

*AVAIL
The date of the earliest available report is used.
date
Specify a date using the format YYYYMMDD where YYYY represents the year, MM the month, and DD the day. Do not use any type of special characters to separate year, month, and day values.

Element 2: To date

*CURRENT
Today's date is used.
date
Specify a date using the format YYYYMMDD where YYYY represents the year, MM the month, and DD the day. Do not use any type of special characters to separate year, month, and day values.
Top
*YES
Display the report search and report selection screens if necessary.
*NO
Display the document search screen for key entry without any report selection screens being displayed. The report name from the REPORT parameter and the date range from the RPTDATE parameter will be used for the report name and date range. Only allowed when a report name is specified for the REPORT parameter.
Top

Examples

Example 1: Simple Example

FNDRPTRDAR

This command, if issued with no parameters, takes the user to the OnDemand Spool File Archive main "green screen" search panel to begin to search for archived documents.

Example 2: More Complex Example

FNDRPTRDAR REPORT(CHECKSTMTS) RPTDATE(20020101 20021231)
             DSPRPTSLT(*NO)

This command bypasses a number of the OnDemand Spool File Archive preliminary search screens. This command would take the user directly to the panel that allows for the entry of key values to search for a particular report named CHECKSTMTS with a date that falls within the date range specified.

Top

Error messages

None

Top