z/OS ISPF Edit and Edit Macros
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


END—End the Edit Session

z/OS ISPF Edit and Edit Macros
SC19-3621-00

The END macro command ends the editing of the current sequential data set or partitioned data set member.

Syntax

Read syntax diagramSkip visual syntax diagram
Macro command syntax

>>-ISREDIT--END------------------------------------------------><

Description

If an edit macro contains an ISREDIT END statement, there can be no other ISREDIT or ISPEXEC statements following it. If one of these kinds of statements does follow an ISREDIT END, the edit macro ends with an error when that statement occurs. However, any other CLIST, REXX exec, or program statements can follow an ISREDIT END statement and process normally.

If no aliases have been defined for END, the response of the editor to the END command depends on:
  • Whether changes were made to the data during your current edit session
  • If changes were made, whether a SAVE command was entered after the last change
  • The setting of number mode, autonum mode, stats mode, autolist mode, and autosave mode in the edit profile
  • Whether you were editing a member that was an alias of another member
Note: When END is entered in the macro field in the edit prompt panel (ISRUEDIT), the macro name is not saved in the profile for use in future sessions. This is to avoid having the editor appear to do nothing when it is invoked from the data set list.

See Ending an edit session for more information.

Return codes

0
Normal completion
4
New member saved
12
END not done, AUTOSAVE OFF PROMPT set, or Data not saved (insufficient space)
20
Severe error

Examples

To end the current edit session:
ISREDIT END

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014