Method of Operation
This section describes the operation of the VM/370 Directcry Frogram. Figure 4-1 shows
the relationship of the Method of Operation
diagrams.
Diagram 4-1 describes the
functions of the Directory program. Diagram 4-2 Diagram 4-3 DMKDIR DMKDIR major
Diagram 4-1
Overview of
the Directory
Program Control Statement Control Statement
Processing Processing Diagrams 4-2, 4-3, and 4-4 describe the
control statement processing and the
resulting action. Diagram 4-5 shows the functions
performed before the program terminates. Diagram 4-4 Diagram 4-5 DMKDIR Directory Control Statement
Exit
Processing
Figure 4-1. Key to the Directory Program Method of Operation Diagrams 82 IBM VM/370 Service Routines Program Logic
I L
parameter
List (PLlST)
filename
filetype
filemode
options of
control
statement
file I Lr Processing
Set up base registers and pointers. 2 Set up to read input control
statements.
3 Read control statements. If first
control statement is not DIRECTORY, issue message and
repeat read.
Process control statements.
(See Diagrams 4-2, 4-3, and 4-4 for
details.) If more statements to process,
return to read.
4 If last statement already processed,
perform final functions. (See
Diagram 4-5 for details.) I •••• CMSor\Nalt Notes Module Label Ref Notes
1 DMKDIR sets up registers 12, 13, and DMKDIR DMKDIRCT EOJ DIRECTORY NOT UPDATED
9 as base registers and sets up
pointers to the first UDEVBLOK and
the allocation record buffer.
are displayed and control returns to
CMS.
2 If running standalone, the headp.r line DMKDIR MSGRET
3 Control statements are read via SVC 202 when the Directory program is DMKDIR762E DIRECTORY CARD I MISSING B Directory Module Label Ref
TERM
DMKDIR READ
is printed: I I VM/370 USER DIRECTORY CREATION PROGRAM
RELEASE n I ,uo uod,,, tho "'''''0' of CMS. Whoo I I I the Directory program runs standalone,
the read function is performed either by I the GRAPHID routine (if the console is GRAPHID ENTER CARD READER DEVICE ADDRESS AND OPTIONS The program then reads a response
from the console. A read is issued to
the card reader indicated (if any). If the operator enters a null line in
response to the message, the IPL device
is used as the input card reader. If the EDIT option is specified, DIRFLAG is set to X'20'. If running under CMS, set the P-list
containing the filename, filetype and
filemode of the file containing the
directory control cards. If EDIT is
specified, the DIRFLAG is set to X'20. The STATE macro is issued to see if
the control statement file exists. If the file is not found, the messages, DMKDIR763E INVALID FILE­ NAME OR FILE NOT FOUND
a display device) or by the ST ARTIO STARTIO routine in all other cases. The READ
routine scans the control statement
PEFAUL13
and branches to the appropriate
processing routine. After processing
each control statement and executing
the associated routine, control to READ to process the next control
statement. 4 When the last statement is read and EXIT processed, the READ routine branches
and links to the EXIT routine.
CMS1 iEDITTEST Diagram 4-1. Overview of the Directory Program Chapter 4. t!KDIR--The Directcry Progras 83
Previous Page Next Page