A Batch Example
You can create a batch file in the IDL Editor or other text editor program. An example of an IDL executive command line that initiates batch execution:
This command causes the file myfile 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
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.
Example Code
Several working batch files are included in the distribution. For an example, type @sigprc09 at the IDL prompt to run the batch file. The source code for this example is located in sigprc09, in the examples/doc/signal directory.