BEGIN Verb - Close All Open Channels Except 0

Syntax

BEGIN {{EXCEPT} varlist}

Description

For BBj-specific information, see BEGIN Verb - BBj.

The BEGIN verb performs a CLEAR and closes all opened channels except channel 0. It is one of the reset/initialize verbs available in PRO/5.

Parameter

Description

EXCEPT

List of variables that are not to be cleared.

varlist

List of variables to be cleared. It should be comprised of simple variables. ARRAY[ALL] and ARRAY$[ALL] are permitted to prevent an array from being cleared.

Execute the BEGIN at the beginning of a program to ensure a fresh data area and closed channels. See the RESET for additional information on the levels of RESET verbs.

Examples

Example 1

The following shows the BEGIN verb as used in console mode:

>BEGIN

Example 2

The following shows the BEGIN verb as used in a line of code:

0100 BEGIN

Example 3

The following shows the BEGIN verb as used with the EXCEPT clause to exclude variables from being cleared:

0100 BEGIN EXCEPT COMPANY$,PARAM$,J{ALL}

See Also

Verbs - Alphabetical Listing