C -- Logic Commands

Call

There is no longer a CALL command; it becomes an invocation of a method on a class defined as external. Refer to Migrating the CALL Command for more information on how to handle migration of existing Call commands.

Case

Specifies values that, if matched by the control variable specified by the associated BeginCase logic statement, direct logic flow to subsequent logic statements.

Case, Otherwise, Else,EndCase are not standalone commands and their syntaxes are included along with the BeginCase command.

Compute

Calculates a free-form expression involving arithmetic operations and variables. Calculations are performed in standard mathematical precedence for arithmetic operators, and from left to right. Parentheses might be used to modify the order of evaluation of the expression.

COMPUTE variable expression [ ROUNDED ] [ GS status ]
Option Description

variable

The variable to receive the result.

expression

The expression to evaluate.

(ROUNDED or ROU)

Rounds the result when truncation occurs.

GS status

Indicates division by zero or arithmetic overflow using the specified variable.

Continue

Skips the remainder of the contents of a logic statement loop in the current iteration.

CONTINUE

CriticalPoint

Used in reports to force end-of-transaction, defining a synchronization point for recovery. This enables easy and rapid recovery following a system failure.

CRITICALPOINT [ SLEEP number ] [ NORELEASE ]
Option Description

SLEEP expression

Suspends the report for a specified time. Time can be specified as number of seconds, as an attribute with numeric value ranging from 0 through 9999, or any numeric expression.

If the Sleep command option is not specified, or the specified period of time is 0, the report continues immediately after end-of-transaction processing is complete.

(NORELEASE or NR)

Prevents the release of printed output for ROC direct reports and non-ROC reports when a CriticalPoint logic statement is executed, which would Otherwise be the default behaviour. It has no effect in ROC standard reports. All output is written for all print files when the CriticalPoint logic command is executed.

 

Cursor

Specifies the user interface attribute or key on which to position the cursor when the user interface is displayed. It overrides the ispec's Default Cursor Field property.

CURSOR [ variable | ENDOFPAGE ]
Option Description

variable

An attribute field specifying the position of the cursor. It must be a persistent user interface attribute that allows data input, and the attribute being set in the field must be of primitive type or a reference.

ENDOFPAGE

This command moves the cursor to the end of the page field in the Fixed mode screens (green screen) on an MCP platform. The end of the page field always appears as the "@" field, which is the last field on the screen.

This command option is not supported on applications deployed on Windows platform.