WAVE
prompt.
NOTE: Execution of a program interrupted by typing Control-C may also be resumed at the point of interruption with the .CON command.
WAVE
prompt), and the initial size of the data area for compiled procedures and functions.The two parameters are positional, but not required. If you execute .LOCALS with no parameters, the data area is set back to its default value, which is 500 local variables. If you want to use 700 variables at the $MAIN$ level, enter:
.LOCALS 700
For compiled procedures and functions, the compiler initially allocates code and data areas of the same size as those that $MAIN$ is currently using. If you get compiler error messages stating that the code and/or data area of a procedure or function is full, you must first make the $MAIN$ code and/or data areas larger with the .SIZE or .LOCALS executive command. Then when you recompile the procedure or function, the compiler starts with the larger code and/or data areas.
The ..LOCALS compiler directive is similar to the .LOCALS executive command, except:
-t
, -l
, and -c
switches have the same effect as with .RUN. See the examples below. Its syntax is:
WAVE
prompt until a complete program unit is entered. The values of all the variables are retained. Files containing PV-WAVE procedures, programs, and functions are assumed to have the filename extension (suffix)
.pro
. If the filename is the same as the actual function or procedure name, the function or procedure is compiled and executed.The command arguments
-t
for terminal listing, or -l
for listing to a named file, may be used after the command name, and before the program file names, to produce a numbered program listing directed to the terminal or to a file. For instance, to see a listing on the screen as a result of compiling a procedure contained in a file named analyze.pro
:
.RUN -t analyze
analyze.lis
:
.RUN -l analyze.lis ana1yze
Each level of block nesting is indented four spaces to the right of the preceding block level to improve the legibility of the program's structure.
UNIX and OpenVMS Users: Use the command argument-c
after .RUN to compile a main program without executing it.
.RUN
.RUN myfile
.RUN -t a, b, c
c.pro. Lists the programs on the
; terminal.
.RNEW -l myfile.lis myfi1e, yourfile
... ... ... OPENR, 1, 'missing' READF, 1, xxx, ..., ... ... ... ...
.SKIP
, which skips over the incorrect OPENR procedure.
.CON
, which resumes execution of the program at the READF procedure.
After successful compilation, a new memory area of the required size is allocated to hold the newly compiled program unit.
CAUTION: Resizing the code and data areas erases the currently compiled main program and all main program variables.
.SIZE 40000 10000