Introduces a statement
block in a CASE control structure.
Syntax
WHEN <f1> [OR
<f 2> OR�] | OTHERS.
The statement block
following a WHEN statement is executed if the contents of the field <f> in the
CASE statement are the same as those of one of the fields <f i
>. Afterwards, the program
carries on processing after the ENDCASE statement. The statement block after
WHEN OTHERS statement is executed if the contents of <f> does not equal any of
the <f i
> contents.
WHILE
Introduces a loop.
Syntax
WHILE <logexp>[VARY <f> FROM <f1> NEXT <f2>].
Introduces a statement
block that ends with ENDWHILE. The statement block between WHILE and ENDWHILE is
repeated as long as the logical expression <logexp> is true, or until a
termination statement such as EXIT or CHECK occurs. The VARY addition allows you
to process fields the same distance apart in memory.
WINDOW
Displays a list as a modal
dialog box.
Syntax
WINDOW STARTING AT <x1>
<y1> [ENDING AT <x2> <y2>].
Only occurs in list
processing. The current detail list is displayed as a modal dialog box. The top
left-hand corner of the window is positioned at column <x1> and line <y1>. The
bottom right-hand corner is positioned at column <x2> and line <y2> (if
specified).
The contents of the field
<f> are formatted according to their data type and displayed in the current
list. . The additions before the field allow you to specify a line break, the
starting position, and the length of the field. The additions after the field
allow you to display checkboxes, symbols, icons, and lines. The <format>
addition can contain various other formatting options. The QUICKINFO addition
allows you to assign a tool tip <g> to the field.
WRITE TO
Assigns string values.
Syntax
WRITE <f1> TO <f2>
[<format>].
Converts the contents of a
data object <f1> to type C, and assigns the resulting string to the variable
<f2>. You can use the same formatting options available in the WRITE statement