BEGIN command

From m204wiki
Jump to navigation Jump to search

Summary

Privileges
User
Function
Specifies the beginning of a User Language request

Syntax

BEGIN

Example

BEGIN DRIVER: FIND ALL RECORDS FOR WHICH RECTYPE = DRIVER END FIND NUM.DRIVERS: COUNT RECORDS IN DRIVER PRINT COUNT IN NUM.DRIVERS END

Usage notes

Every User Language request must be preceded by a BEGIN command or a MORE command and concluded by an END statement. After encountering a BEGIN command, Model 204 assumes that every input line entered by the user is a User Language statement (or a portion of a statement), until the user specifies an END statement.

Output from a User Language request appears on the user's terminal unless a USE command directs the output to an alternate device.

A BEGIN command is required even when a request is embedded in a stored procedure. User Language requests are described in detail in the Rocket Model 204 User Language wiki pages: http://m204wiki.rocketsoftware.com/index.php/Category:SOUL.

When BEGIN follows another command that does not automatically end its own update unit (for example, DEFINE), Model 204 ends any update unit in progress and begins a non-backoutable update unit. For more information about Model 204 update units, see the Rocket Model 204 File Manager's Guide.