Creating Report Definition Files

All reports created by ReportWriter are stored in a report definition file. The default is reports.rpt, and its location is defined with the RPTDAT environment variable.

An empty reports.rpt file is included with your distribution. You can create as many additional report definition files as you like. For example, you may want to create separate definition files to customized reports for specific customers. If you do not use the default report definition file, use the environment variable RPTRFIL to define the report definition file location.

Note

The report definition file must be writable (that is, users must have “write” or “update” permission), even when users are only viewing reports.

ReportWriter searches for the report definition file as follows:

Creating and using a new report definition file

1. Create a new file with the Create Report Definition File utility.
2. Exit ReportWriter and set the environment variable RPTRFIL to the new file.
3. Restart ReportWriter. It is now using the new report definition file.

Moving report definition files

You can copy report defnition files to other systems. This enables you to do your development on one system and then move just your finished reports to other systems. To move your report definition files to another system, do one of the following: