Previous IDL Reference Guide: Dot Commands Next

.RNEW

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.

Syntax

.RNEW [File1, ..., Filen]

To save listing in a file:

.RNEW -L ListFile.lis File1 [, File2, ..., Filen]

To display listing on screen:

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

Example

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

Table 2-1: Examples using .RUN and .RNEW 

Table 2-1: Examples using .RUN and .RNEW 
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.

See Also

.COMPILE, .RUN

  IDL Online Help (March 06, 2007)