Previous Topic: pdm_webstat--Return Web Usage Statistics

Next Topic: rpt_srv--Generate Reports

report--Generate Reports

Applies to UNIX only

The report program lets you generate a report from the command line on the server. To issue the report command at the command line or in a script, you must include pdm_task. The pdm_task command sets up environment variables for commands that do not have a wrapper. Enter pdm_task with the report command on the same command line only when the report is invoked through a script or the command line. If you issue the report command from a menu, you do not need to include pdm_task, because all environment variables are set by the application.

Syntax

This command has the following format:

pdm_task report [-h] [-e] [-f] [-F ffstring] [-p pagelength] filename [ command line arguments]

-e

Echoes compiled script (for debugging purposes).

-f

Uses form feeds between pages.

-F ffstring

Sets the optional form-feed string.

-p pagelength

Sets the page length. The default page length is 66.

filename

The report template. If you are not running the report command from the directory in which the template file is located, include the complete file path name. The command sends the output as standard output (stdout).

command line arguments

Specifies parameters received by the report template. If the report is designed to accept command line arguments, you must enter a command line argument for each parameter in the report template. If the argument is empty, enter the null string.

For example, the following command supplies the command line arguments Smith, Jane, and L. The report template requires these three parameters to generate the Affected Contacts Report.

For example, enter:

pdm_task report /opt/CAisd/samples/sdk/reports/affected.rpt

In the next example, Jane Smith does not have a middle initial:

pdm_task report /opt/CAisd/samples/sdk/reports/affected.rpt Smith Jane "