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


SAVE—Save the Current Data

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

SAVE saves edited data without ending your edit session. Generally, you do not need to use SAVE if recovery mode is on. See AUTOSAVE, CANCEL, and END for more information about saving data.

Syntax

Read syntax diagramSkip visual syntax diagram
>>-SAVE--------------------------------------------------------><

Description

SAVE writes the data to the same data set from which it was retrieved unless you specified a concatenated sequence of partitioned data sets on the Edit Entry panel. In that case, the data is saved in the first library in the concatenation sequence, regardless of from which library it came. For a sequential data set, the complete data set is rewritten. For a partitioned data set, the member is rewritten with the same member name. If stats mode is on, the library statistics for the member are automatically updated.

If both number mode and autonum mode are on, the data is automatically renumbered before it is saved.

If SAVE cannot successfully rewrite the data because of I/O errors or insufficient space, the system displays a message in the upper-right corner of the panel, accompanied by an audible alarm, if installed. You can then try to save the data in another data set by taking these steps:

  1. Enter CREATE or REPLACE with no operand on the command line. Use CREATE only if the destination is a member of a partitioned data set, such as an ISPF library member.
  2. Type CC on the first and last data lines to specify that all lines are to be copied. Then press Enter.
  3. Fill in the data set and member name of the alternate library on the Edit Create or Edit Replace panel, and press Enter.

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.

See Creating and replacing data for more information.

Examples

To save the data in the data set or member that you are editing:

  1. On the command line, type:
    SAVE
  2. Press Enter.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014