RUNis executed in two parts, prerun initialization and program execution.
The prerun part reserves memory space for variables declared inDIM,REAL,INTEGER,COMPLEXandCOMstatements or implied in the program context. Numeric variables are set to zero and string variables are set to zero length strings. Prerun also checks for multi-line syntax errors such as illegal program structure, array references and mismatchedCOMstatements. If prerun detects any errors, they are reported to the user and the program halts.
If prerun detects no errors, the MAIN program is run starting at the beginning or if a program line or label is specified, it starts execution at the specified line. The program line or label must be in the MAIN context. The program runs normally until it encounters aPAUSE, aSTOPorENDstatement, an error or aTRACE PAUSEline.