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

The SAVE macro command stores the current data on disk. Generally, you do not need to use SAVE if recovery mode is on. See the DATA_CHANGED, AUTOSAVE, CANCEL, and END commands for more information about saving data.

Syntax

Read syntax diagramSkip visual syntax diagram
Macro command syntax

>>-ISREDIT--SAVE-----------------------------------------------><

Description

The SAVE command 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 which library it came from. 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.

Return codes

0
Normal completion
4
New member saved
12
Data not saved; not enough PDS space or directory space
20
Severe error

Examples

To check autosave mode and, if it is set to OFF, ensure that changes are saved:
ISREDIT (VAR) = AUTOSAVE
IF &VAR = OFF THEN -
   ISREDIT SAVE

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014