The output command is included solely for compatibility with previous versions of Dataease that were unable to have multiple list records statements. The entry is included here for completeness.
The output command tells DataEase which items to display in the procedure output for each record processed by a scriptScript. The items you output can include a fieldname, constant value, a variable or any other expression you want to include in the layout of your report.
Syntax
outputFIELDNAME | "TEXT" ;|. end
Usage
The output command lets you specify fields and/or text to be included in the report. Text values must be enclosed in quotation marks. Each item listed in the output command must be followed by a semicolon except the last, which is followed by a period. (.)
A script can contain any number of output commands. For each output command, DataEase automatically creates a separate subform object in the body of the layout.
Example
FIRST NAME ;
LAST NAME
STATUS .
output :
401K ;
HEALTH PLAN ;
STOCK OPTIONS .
output :
ANNUAL BONUS ;
OVERTIME RATE .
This example tells DataEase: (1) Process every EMPLOYEE record, listing the first and last name and employment status, (2) if the employee's status is exempt, output the values in the 401K, HEALTH PLAN, and STOCK OPTIONS fields, and (3) if the employee's status is anything other than exempt (in this case hourly), output the values in the ANNUAL BONUS and OVERTIME RATE fields.