Home | Categories | Alphabetical | Classes | All Contents | [ < ] | [ > ]

A Batch Example


An example of an IDL executive command line that initiates batch execution:

@myfile 

This command causes the file myfile.pro to be used for statement and command input. If this file is not in the current directory, the directories specified by !PATH are also searched.

An example of the contents of a batch file follows:

; Run program A: 
. RUN proga 
; Run program B: 
. RUN progb 
; Print results: 
PRINT, AVALUE, BVALUE 
; Close unit 3: 
CLOSE, 3 
<eof> 

The batch file should not contain complete program units. Complete program units should be compiled and run by using the .RUN and .RNEW commands in the batch files, as illustrated above.


Home | Categories | Alphabetical | Classes | All Contents | [ < ] | [ > ]