z/OS TSO/E User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Recovering After a System Failure

z/OS TSO/E User's Guide
SA32-0971-00

To recover data from your last edit session, issue the EDIT command entering the same data set name that you were working on at the time of the failure and include the RECOVER operand. You are placed in edit mode and the work file data set is used as input for the current edit session. The current line pointer is positioned at the top of the data set.

Note the following:
  • If you specify IMODE upon re-entering your edit session, or if you give a data set disposition of NEW, the recovery feature always puts your session in edit mode.
  • If the RECOVER operand is not specified, you are prompted and given a choice of RECOVER or NORECOVER.
  • If the RECOVER operand is specified and the work file data set name does not match the edited data set name, an error message is issued. You are prompted and given a choice of recovering or not recovering the data set.
  • If the RECOVER operand is specified and the work file data set does not exist, an error message is issued.

The example shown in Figure 1 illustrates the different stages of an edit session and the actions necessary to recover it.

Figure 1. Sample Edit Session Using the CKPOINT Subcommand and the RECOVER Operand of EDIT
READY
PROFILE RECOVER
READY
EDIT lions old data
EDIT
ckpoint 5
list
00010 THE
00020 EDIT
00030 LOST,
00040 REENTER
00050 COMMAND
00060 AND
00070 SAVE
00080 ENTRY
c 30 /lost,/recovery/
c 40 /reenter/feature/
c 50 /command/saves/
c 60 /and/you/
c 70 /save/time and/
     (System automatically takes a checkpoint after
     fifth line of modifications.)
c 80 /entry/repetition/
     (Assuming system failure has occurred here, your edit
     session will terminate abnormally.  When the system
     is restored, issue the LOGON command and reenter the
     EDIT command including the RECOVER operand.)

EDIT lions old data RECOVER
EDIT
list
00010 THE
00020 EDIT
00030 RECOVERY
00040 FEATURE
00050 SAVES
00060 YOU
00070 TIME AND
00080 ENTRY
c 80 /entry/repetition/
(Note:  The last line was not kept.  All other changes
     were kept in the EDIT work file (utility data set)
     making it necessary to reenter only one line.)

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014