BEGIN {{EXCEPT} varlist}
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.
The following shows the BEGIN verb as used in console mode:
>BEGIN
The following shows the BEGIN verb as used in a line of code:
0100 BEGIN
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}