Programming Guide



runreport

Invokes the report generator and runs the specified report

Synopsis

runreport filename [!reportname ] [ (arg[, ... ] )] [ option ]...

Arguments

filename
Specifies the name of a report file. Panther looks for the file in the application's memory-resident list, then in all open libraries. For remote report processing, the report file must be in a server or common library.

reportname
The name of a report definition in filename to invoke. If reportname is omitted, Panther uses the first report definition in the file.

arg
You can supply one or more arguments to the report. Each argument must be a valid JPL expression–either a string within quotation marks, a number, or the name of a Panther variable to evaluate when the report is run. In order to process these arguments, the following conditions must be true:

option
You can specify invocation options. For a description of invocation options, refer to "Setting Invocation Options" in Reports.

Description

The runreport command invokes Panther's report generation facility to execute the specified report.

Example

The following JPL procedure runs the custinfo.rpt report for the value in the cust_num variable and writes the report to the file custinfo.txt.

proc make_report
runreport custinfo.rpt (cust_num) output=custinfo.txt
return

See Also

sm_rw_runreport