Stop (statement): Difference between revisions

From BR Wiki
Jump to navigation Jump to search
(Created page with "The '''STOP''' (ST) statement ends Business Rules, closes all files, and resets the value of the CODE function. ===Comments and Examples=== STOP is an optional statement....")
 
Line 13: Line 13:
===Parameters===
===Parameters===
"Num-expr" is an optional parameter that sets the value of the CODE variable.
"Num-expr" is an optional parameter that sets the value of the CODE variable.
See the [[END]] statement and the [[CODE]] function for information about uses of
See the [[End|END]] statement and the [[CODE]] function for information about uses of
CODE. See also the [[CHAIN]] statement to end a program by starting another program or procedure.
CODE. See also the [[Chain|CHAIN]] statement to end a program by starting another program or procedure.

Revision as of 23:16, 5 February 2013

The STOP (ST) statement ends Business Rules, closes all files, and resets the value of the CODE function.

Comments and Examples

STOP is an optional statement. When STOP is not specified, the system automatically ends a program after the last line in the program and sets the value of CODE to 0. In the following example, STOP indicates the end of the program and sets the value of CODE to 1:

00130 STOP 1

Syntax

Default

1.) Set CODE to 0.

Parameters

"Num-expr" is an optional parameter that sets the value of the CODE variable. See the END statement and the CODE function for information about uses of CODE. See also the CHAIN statement to end a program by starting another program or procedure.