Routines (alphabetical) > Routines: E > EXIT

EXIT

Syntax | Arguments | Keywords | Version History | See Also

The EXIT procedure quits IDL and exits back to the operating system. All buffers are flushed and open files are closed. The values of all variables that were not saved are lost.

Syntax

EXIT [, /NO_CONFIRM] [, STATUS=code]

Arguments

None.

Keywords

NO_CONFIRM

Set this keyword to suppress any confirmation dialog that would otherwise be displayed in a GUI version of IDL such as the IDL Workbench.

STATUS

Set this keyword equal to an exit status code that will be returned when IDL exits. For example, on a UNIX system using the Bourne shell:

Start IDL:

$ idl

Exit IDL specifying exit status 45:

exit, status=45

 

Display last exit status code:

$ echo $?

The following displays:

45

Version History

Original

Introduced

See Also

CLOSE , FLUSH , STOP , WAIT