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


DATA_CHANGED—Query the Data Changed Status

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

The DATA_CHANGED assignment statement retrieves the current data-changed status and places it in a variable.

Syntax

Read syntax diagramSkip visual syntax diagram
Assignment statement syntax

>>-ISREDIT--(varname)-- = --DATA_CHANGED-----------------------><

varname
The name of a variable containing the data-changed status, either YES or NO. The data-changed status is initially set to NO at the beginning of an edit session, and is reset to NO whenever a save is done. If you change data on your screen, but issue the END command, the data-changed status is still NO. When data is changed, or if a command is issued which might have changed the data, the changed status is set to YES.

Description

This command returns information about whether the data might have changed. However, it does not specify whether data is saved when the END command is issued. Data can be saved without being changed if there is a change to the version, number, stats, or pack mode. When DATA_CHANGED returns a value of NO, an 8 character variable called ZEDSAVE is set to indicate whether the data is saved. ZEDSAVE will contain either "SAVE " or "NOSAVE". See AUTOSAVE, CANCEL, SAVE and END for more information about saving data.

Return codes

0
Normal completion
20
Severe error

Examples

To determine whether data has been changed and, if it has, to issue the built-in SAVE command:
ISREDIT (CHGST) = DATA_CHANGED
IF &CHGST = YES THEN ISREDIT BUILTIN SAVE

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014