Previous IDL Reference Guide: Dot Commands Next


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.

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


.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]


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 
Accept a program from the keyboard. Retain the present variables.
.RUN myfile
Compile the file 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, and List the files on the terminal.
.RNEW -L myfile.lis myfile, yourfile
Erase all variables and compile the files and Produce a listing on myfile.lis.

See Also


  IDL Online Help (March 06, 2007)