Previous Topic: Process CommandsNext Topic: Coding Considerations


Constructing Commands

Command statements consist of commands and qualifying parameters.

Verbs

Specify the operation to perform.

For example, RETURN, COMPUTE, IF, DISPLAY, OBTAIN, and WRITE PRINTER are commands.

Parameters

Qualify commands and specify additional operations to perform. Parameters can be:

Type of variable

Purpose

Arithmetic expression

Specifies a simple or compound arithmetic operation

Built-in function

Specifies evaluation of a value according to a predefined operation

Conditional expression

Specifies test conditions

Constant

Specifies a value to be used in command processing

Error expression

Permits the return of error status codes to a dialog

Variable data field

Supplies the name of a user- or system-supplied data field for use in command processing