Input Processing Output :> 1 If I NPUT or OUTPUT control tl statement, update the DASD or
tape lOB. Control
2 If SYSPR I NT control statement,
Statements
update the printer lOB. 3 If PRINT or TYPE control
statement, set up the name of the 10BLOK processing routine.
4 If DUMP, RESTORE, or COPY control statement, set up the name
of the processing routine.
Notes Module Label Ref Notes Module Label Ref
1 The address of the lOB is loaded into DMKDDR register 15. DMKDDR gets the unit
address. The unit address (I0BUADD) SCANOUTP
and alternate tape address (IOBATAPE) fields of the lOB are filled in. If an error occurs, either message I DMKDDR701E INVALID OPER· I AND - xxxxxxxx ! DMKDDR703E OPERAND MISSING DMKDDR reads the device type from
the control statement and then branches
is displayed. The statement in error
is ignored, and control returns to the
and links to the SCAN routine. The GTCARD routine to read the next
SCAN routine searches a table of valid control statement.
devices and picks up the device class
and type. The class (lOBCLASS) and . 3 The translate table is set up. If TYPE DMKDDR SCANPRIN type (lOBTYPE) fields are updated. is specified, the LOWERCAS table is SCANTYPE
The codes for the various device classes used. If PR INT is specified, the
are contained in the DEVTYPES UPPERCAS table is used. The
COpy file. routine name is set up: PRINT or
TYPE. If a DASD serial number is specified,
the volume serial number (IOBVSER) field is updated.
The start address (default is track 0 record 0) and the stop address (default
is last track and last record) are set up. If tape options are specified, the lOB is updated.
Field Options If TYPE is specified, the console skips
one line. If PRINT is specified, the
printer skips to channell. 10BSKIP number of times file to be
forward spaced. 10BMODE tape mode.
X'C3' indicates g·track 1600 BPI X'CB'indicates If there is an error in the control
statement, either error message
DMKDDR701E INVALID OPER· AND- xxxxxxxx
DMKDDR703E OPERAND MISSING g·track BOO BPI is displayed. The control statement is IOBDISP disposition of tape. X'OT indicates
ignored, and the next control card is
read by the GTCARD routine.
rewind
X'OF' indicates
rewind and unload
4 If DUMP control statement, set the DMKDDR SCAN DUMP
processing routine name to DUMP.
X'03' indicates tape
is not to be
repositioned If RESTO REcontrol statement, set SCANRESTl
the processing routine name to
RESTORE.
Either of the following error messages
may be displayed while processing INPUT 0,. OUTPUT control statements: If COpy control statement, set the SCANCOPY
processing routine name to COPY.
DMKDDR701 E INVALID OPER· For the dump function, the input
AND - xxxxxxxx
DMKDDR703E OPERAND MISSING must be a DASD and output a tape.
For the restore function, the input
must be a tape, the output a DASD. If either of these errors occurs, the
control statement is ignored and control
returns to the GTCARD routine to read
the next control statement.
For a copy function, the input and
output devices must be the same class
and type. If the input device contains
more cylinders than the output device
the following message is issued:
2 The address of the printer lOB is loaded DMKDDR SCANSYSP
into register 15. The printer unit
address is placed in the 10BUADD DMKDDR725R ORIGINAL INPUT DEVICE WAS(lS) LARGER
THAN OUTPUT DEVICE field of the lOB. The operator must determine if the
copy function is to continue.
Diagram 5-2. DDR Program Control Statement processing
96 IBM VM/370 Service Routines Program Logic
I --'- ____ -'\ 2 Dump the disk records to tape. 8 I Open the files. ----) 3 1 16 END OF DUMP I Notes
1 The input disk is opened by branching
and linking to the OPENDASD routine. The extent table is updated
to define the cylinders to be
dumped. Each statement the extent table untIl a null line, an INPUT statement, or OUTPUT statement is read.
The output tape is opened, the
proper number (if any) of records
is skipped and the volume header
record (VHR) is written.
2 Prints the headings indicating the
function being performed and the
date and time of the dump.
The read, write, and update cycle
continues until the indicated disk
extents are dumped to tape. Starting
at the first disk extent (CYLSTART),
the disk records are read. The
record is written on tape and the
pointers are updated to the next disk
record. The dump cycle continues until the last disk extent CYLSTOP is dumped to tape.
3 The message
END OF DUMP
indicates that the dump function has successfully terminated.
Print message.
4 Close tape. Module Label Ref
DMKDDR OPENIN GETEXT IOPE"auT I I DMKDDR PRINTH MSGOO4 BUILDTHR TESTOUT UPDTADD
DMKDDR CLOSEJOB Diagram 5-3. The DumF Function II II Notes
4 The trailer record is written on the
output tape. If the tape disposition
was specified on the DUMP control statement, the tape is so positioned
now. Control returns to the control statement read routine (GTCARD)
to read and process the next control statement.
Module
DMKDDR Label Ref EOJ Chapter 5. !he DASD Dump Restcre Program 97
Previous Page Next Page