Terminating the Program Editor

Start of instruction setTo terminate the program editor

  • In the command line (Command ===>), enter one of the following editor commands:

    EXIT

    or

    CANCEL

    or

    .

    (a period)

    Or:
    On the editor screen, press PF3 or PF12.

Before leaving the editor, depending on your editor profile settings, the EXIT Function window appears as described in the following section.


Exit Function

If the editor profile option Prompt Window for Exit Function or Prompt Window for Cancel Function is set to Y, any time you execute the exit function (PF3 or EXIT editor command) or the cancel function (PF12 or CANCEL editor command), the EXIT Function prompt window is invoked. This window provides the following options:

Option Explanation
Save and Exit Leaves the editor after saving all modifications made to the current source code.
Exit without Saving Leaves the editor without saving any modifications made to the current source code since it was last saved.
Resume Function Neither leaves the editor nor saves any modifications; the prompt window is closed and the current function is resumed.

When Prompt Window for Exit Function or Prompt Window for Cancel Function is set to N, the corresponding exit or cancel function terminates the editor immediately without displaying the prompt window. Any changes made to the current source since you last saved the source are not saved.

For details on saving a source, see Saving and Cataloging Sources. For details on setting editor profile options, see the section Editor Profile.