Processing Initialize the DDR program.
2 If running standalone, print heading
and determine input device.
) 3 If running under VM/370, build
PLiST from passed parameters.
4 Read a control statement. (See
Diagram 5·2 for details.) If statement type not found, issue
error message and read another
statement. I 5 Perform specified function.
(See Diagrams 5-3, 5-4, 5-5, 5-6,
and 5-7 for details.)
6 At end, exit to CMS or enter wait
state.
Notes Module Label Ref Notes
DMKDDR701 E INVALID OPERAND xxxxxxxx
Module Label Ref
1 The DDR program is initialized and the DMKDDR DMKDDREP control returns to the CMS command
2
base registers (9,10,11,12, and 13)
are set up.
The heading " •• I",..,n nA I""\. nllAlln/nr TI"'\ V,VI/':>/V UMSU uv,v'rtncS,vRE PROGRAM RELEASE n
is displayed. If no input device is specified, the IPL device is used as the input device.
3 DMKDDR builds a PLiST if parameters
are passed from CMS to the DDR
program.
DMKDDR NEWADD I I I I DMKDDR I CMSl 4 DMKDDR reads the control statement. DMKDDR GTCARD The routine needed to initialize the
DDR function is found by branching
and linking to the SCANNAME routine
and searching the name table.
5 The designated function is performed. DM KDD R
At its end, control returns to the GTCARD routine to read the next
control statement and perform the next
function. I 6 When the last control statement is read
and processed the GTCARD routine
branches to the EXIT routine.
The end of job statement (MSG001) is
displayed. If running under VM/370, the SYSPRINT device is closed and I DMKDDR I EXIT CMS8 I II I Diagram 5-1. Overview of the DDR Program
environment. If running standalone, the wait
state is entered. TESTCMS Chapter 5. !he DASD Dump Restore Program 95
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
Previous Page Next Page