Introduction Getting Started CED Features CED Commands Index

END command

Syntax: END
Discussion: The END command ends the Comet Editor and returns to the QMONITOR program. A record of all open files is kept, so that the next time the editor is run, these files will be automatically re-opened.
Notes: As of release 97.01, the Comet Editor functions as a program and/or a subprogram. The following logic determines what happens when the END command is used:
 
   If the value of the ENTERLEVEL system variable is greater than 0, 
      then EXIT from the program;
   otherwise, run the QMONITOR program.
Thus, when exiting from CED, if CED is running as a subprogram, exit back to the previous program (do not run QMONITOR). If CED is running as a program (not a subprogram), then exit back to QMONITOR.

This feature was added to facilitate running CED in the SuperNova environment (i.e., as a tool under Comet for Windows).