Previous Topic: Job Control StatementsNext Topic: Field Names


Control Statements

Specify the following control statements to execute RMOGRW:

BREAK

Discontinues processing of a repetitive group of statements (DO control statement) and proceeds with the statement following the repetitive group of statements.

CONTINUE

Performs the next iteration of a repetitive group of statements (DO control statement).

CONTROL

Specifies alternate values for line count, line size, database high-level name, print file DDname, output filename, and database selection sequence.

DEFINE

Defines the fields to be used to store data or values.

DO

Specifies the beginning of a repetitive group of statements.

ELSE

Specifies the statements that are to be executed when a false condition is determined for an IF control statement.

END

Specifies the end of a repetitive group of statements (DO control statement), the end of a conditional operation (IF control statement), the end of at-end logic (ON control statement), or the end of the control statements.

IF

Specifies the beginning of a conditional operation.

NEXT

Retrieves the next occurrence of a field. You can use this statement only for address and special instruction lines, text entries (line number, column number, text data), history entries, report identifiers, and distribution identifiers.

ON

Specifies the statements that are to be executed when no more database records or sort records are available.

OUTPUT

Specifies the writing of data to the output data set.

PRINT

Specifies the writing of data to the print data set.

RELEASE

Specifies that a sort record is to be constructed and sorted.

SELECT

Specifies a condition or restriction to selection of information from the database.

SET

Specifies the setting of a defined field (DEFINE control statement).

SORT

Specifies a specific sort sequence to be used in ordering information written to the print and output files.

STOP

Specifies the end of a control statement processing phase.

THEN

Specifies the statements that are to be executed when a true condition is determined for an IF control statement.

TITLE

Specifies the definition of a report title.