Reporting : Native reporting system : Reporting system command language : DEFINE command
  
DEFINE command
Description
Use the DEFINE command in the text mode Report Editor to specify a replacement value for a field in a WHERE command.
A DEFINE statement placed within the global definition block is used by all reports in the Report Definition file.
A DEFINE statement placed within an individual report block is used only by that report.
The structure of the DEFINE command is:
DEFINE text-to-be-replaced replacement-text
The DEFINE command uses field-identifiers to simply specifies “wherever in the encyclopedia you find this value, replace it with this value”.
See also Define dialog.
Examples – DEFINE command
Example 1
For example, if the global definition block contains the line:
DEFINE "Enter 'from' date" "03/01/2000"
All reports can then use this statement to replace the "Enter 'from' date" text with "03/01/2000" or with whatever date you entered in the Define dialog before the report is run.
Example 2
For example, if the local definition block contains the line:
DEFINE "Audit ID" Jsmith
A report can use this statement to replace the "Audit ID" text with JSmith to report on that person’s work on the project or with the name of the person you entered in the Define dialog before the report is run.
Parent topic
Reporting system command language