Input Processing
Open the files.
2 Restore the records to disk.
3 End the restore function.
o
>
END OF RESTORE Notes Module Label Ref Notes Module Label Ref
1 The input tape is opened and position· DMKDDR PPENIN ed if the RESTOR E control statement
The operator must determine if the
restore function is to continue.
specified that records were to be
skipped. The read and write loop continues PETTHR A check is made to ensure that the SETDASD output disk has the correct volume
until all the specified cylinders are PASDWRIl restored to disk. The tape records
are read from the tape that has been
serial number. If the volume serial positioned. The data is written on UPDTADD
number is incorrect, the message on the indicated disk cylinders
DMKDDR717R DATA DUMP
FROM xxxxxx TO BE
and the pointers to the disk are up-
dated for the next record. The RESTORED TO xxxxxx
is displayed. The operator must decide
restore function is complete when the last cylinder (CYLSTOP) is restored.
if the restore function is to continue.
3 The message DMKDDR k:LOSEJOB The extent table is updated to indicate IGETEXT END OF RESTORE the cylinders to be restored to disk. is displayed and control returns to
the GTCARD routine to read the
The output disk is opened by !OPENOUT next control statement.
branching and linking to the OPENDAS[ routine.
2 The headings are printed, indicating DMKDDR PRINTD that the restore function is starting. The number of cylinders on the original DASD input device is compared with the
number of cylinders on the DASD output device. If the input device
was larger, the following message is
issued:
DMKDDR725R ORIGINAL INPUT DEVICE WAS(lS) LARGER
THAN OUTPUT DEVICE Diaqram 5-4. The Restore Function
98 IBM VM/370 Service Routines Program Logic
Input o
-or-
Notes
1 The input file and output file are
opened. The input and output
devices must be the same device type. I The extent table is updated to reflect the amount of data to be copied from
. - .
l
one deVice to anotner. I 2 The heading is written and the message
indicating the start of the copy
function is typed.
The input file is read and the output file is written. If copying from disk to
disk the pointers to the disk records
are updated to the next record. The
read-write cycle continues until the
specified data is copied. When copying
data from tape to tape, the GETTHR
routine performs the record read and
the TESTOUT routine performs the
record write. When copying data
from disk to disk, the BUILDTHR routine performs the record read and
the DASDWRIT routine performs the
record write.
3 The message
END OF COPY indicates the successful completion of
the copy function.
When copying data from tape to tape,
the output tape is positioned as
indicated on the COpy control card.
When the disk to disk copy is complete, >
Open the files. 2 Copy the data.
3 End the copy function. Module DMKDDR
DMKDDR Label Ref OPENIN GETEXT OPENOUT I IpRINTH MSGOO4 UPDTADD I II DMKDDR CLOSEJOB Notes
the disk file is closed. Control returns to the GTCARD
routine to read the next control statement.
END OF COpy Module Label Ref
Diagra. 5-5. The Copy Function
Chapter 5. lhe D1SD Duap Restore Prograa 99
Previous Page Next Page