The .RNEW command compiles and saves procedures and functions in the same manner as .RUN. In addition, all variables in the main program unit, except those in common blocks, are erased. The -T and -L filename switches have the same effect as with .RUN.

Note: .RNEW is an executive command. Executive commands can only be used at the IDL command prompt, not in programs.

Example


Some statements using the .RUN and .RNEW commands are shown below.

Statement

Description

.RUN

Accept a program from the keyboard. Retain the present variables.

.RUN myfile

Compile the file myfile.pro. If it is not found in the current directory, try to find it in the directory search path.

.RUN -T A, B, C

Compile the files a.pro, b.pro and c.pro. List the files on the terminal.

.RNEW -L myfile.lis myfile, yourfile

Erase all variables and compile the files myfile.pro and yourfile.pro. Produce a listing on myfile.lis.

Syntax


.RNEW [File1, ..., Filen]

To save listing in a file:

.RNEW -L ListFile.lisFile1 [, File2, ..., Filen]

To display listing on screen:

.RNEW -T File1 [, File2, ..., Filen]

See Also


.COMPILE, .RUN