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


Ending an edit session

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

Usually, you complete your editing session with the END command and, based on the values in your edit profile, PDF performs these tasks:
  • If autosave mode is on and you have made changes to the data:
    • If both number mode and autonum mode are on, the data is renumbered. If not, the numbers remain unchanged.
    • The data is automatically saved. Special temporary lines, such as =PROF>, =MASK>, ==ERR>, ==CHG>, =BNDS>, =TABS>, ==MSG>, =NOTE=, =COLS>, and ====== are not part of the data and are not saved. However, you can convert =COLS>, ==MSG>, =NOTE=, and ====== lines to data lines and save them as part of the data set by using the MD (make dataline) line command before entering END.
    • If STATS mode is on and the data is a member of an ISPF library or other partitioned data set, the statistics are either generated or updated, depending on whether statistics were previously maintained for the member. If the member is an alias, the alias indicator is turned off.
    • If autolist mode is on, a source listing of the data is recorded in the ISPF list data set for eventual printing.
  • If autosave mode is off with the PROMPT operand, a prompting message is displayed. You can issue SAVE to save the data or CANCEL to end the edit session without saving the data.
  • If autosave mode is off with the NOPROMPT operand, the data is not saved. The result is the same as that which occurs if you enter a CANCEL command. (You can opt to confirm cancellations by selecting that option from the Primary Edit panel action bar Confirm choice.)
  • PDF returns to the previous panel, which is either a member list or the Edit Entry panel.
  • When END is issued from a macro, the edit session does not complete until the macro terminates all processing. For example, when a Rexx macro executes the EXIT statement or a COBOL language program executes STOP RUN.
You can end editing without saving by using CANCEL.

By default, the editor truncates variable-length lines by removing blanks at the end of each line during a save. If a variable-length line is completely blank and has no line number, a blank is added so that the line length is not zero.

If you select "Preserve VB record length" on the edit entry panel, or specify PRESERVE on the edit service, the editor stores the original length of each record in variable-length data sets and when a record is saved, the original record length is used as the minimum length for the record. The minimum line length can be changed by using the SAVE_LENGTH edit macro command. The editor always includes a blank at the end of a line if the length of the record is zero.

Because VIEW is a special type of edit session, it is important to note that the use of the REPLACE or CREATE commands from within VIEW always honors the setting of the "Preserve VB record length" option on the edit entry panel. This setting can be overridden by using the PRESERVE primary command.

Attention: CANCEL cancels all changes made since the beginning of the edit session or the last SAVE command, whichever is most recent.

The RETURN command is logically equivalent to the repeated use of the END command. PDF performs the same actions at the end of the edit session.

When a space ABEND such as D37 occurs, ISPF deallocates the data set so that you can swap to another screen or user ID and reallocate the data set. This does not occur for data sets that were edited using the DDNAME parameter of the EDIT service.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014