Reporting > Native reporting system > Reporting system command language > DEFINE command
  
DEFINE command
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 in the global definition block is used by all reports in the Report Definition file.
A DEFINE statement placed in an individual report block is used only by that report.
Syntax
DEFINE text-to-be-replaced replacement-text
The DEFINE command uses field-identifiers to specify “wherever in the encyclopedia you find this value, replace it with this value”.
See also Define dialog.
Example 1
For example, if the global definition block contains the line:
DEFINE "Enter 'from' date" "03/01/2000"
All reports can use this statement to replace the "Enter 'from' date" text with "03/01/2000" or with whatever date you enter 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