Input Control Statements Notes Module 1 The SCANLINK routine builds a DMKDIR UDEVBLOK. The UDEVSTAT field
is set to X'lO' to indicate the device is
to be linked at logon time. The virtual
device address (UDEVADD) and link device address (UDEVLlNK) are up· dated. The mode (UDEVMODE) is also updated.
Label Value Comments UDEVR 00 R link·mode UDEVRR 04 RR link-mode UDEVW 08 W link-mode UDEVWR 12 WR link-mode UDEVM 16 M link-mode UDEVMR 20 MR link-mode UDEVMW 24 MW link-mode 2 If the IPL control statement does not DMKDIR follow a USER, ACCOUNT, or OPTION control statement, DMKDIR752E STATEMENT SEQUENCE ERROR FOLLOW- ING USER user
appears on the console followed by the
statement that was out of sequence.
Directory processing is terminated after scanning the remaining statements for
syntax.
The name of the system to be loaded
(via IPL) at logon time is placed in the UMACIPL field of the UMACBLOK. 3 The SCANSPEC routine builds a DMKDIR UDEVBLOK for a special device.
The virtual device address is stored in UDEVADD, the device type is stored
in UDEVTYPE, and the class is stored
in UDEVTYPC. The SPANSPEC routine branches and links to the SCAN NAME routine with register 4
pointing to TABLE2. The device type
and class is picked up directly from
TABLE2 for a 3270 and pseudo-timer.
Processing If LINK control statement, update
the UDEVBLOK and chain it.
2 If IPL control statement, update
the UMACBLOK. 3 If SPECIAL control statement,
update the UDEVBLOK and chain
it.
4 If CONSOLE control statement,
update the UDEVBLOK for the
console and chain it.
5 If DIRECTORY control statement,
update the lOB LO K and get the DASD page address of the DDIRBLOK and UMACBLOK buffers.
> Output First
Record UDIRBLOK UDIRBLOK UDIRBLOK Lr n-. Second
Record UMACBLOK UDEVBLOK UDEVBLOK UMACBLOK UDEVBLOK ... Label Ref Notes Module Label Ref SCAN LINK The SCANNAME routine branches (via
an ADCON) to the SCANCTCA, SCAN2701, SCAN2702, and SCAN2703 routines to determine the device type
and class of channel-ta-channel adapter,
or 2701, 2702, and 2703 special device.
4 The SCAN CONS routine builds a DMKDIR SCAN CONS UDEVBLOK for the console. The
virtual device address is stored in UDEV ADD, the device type is stored
in UDEVTYPE, and the class is stored
in UDEVTYPC. The default class is T.
The SCAN CONS routine branches and
links to the SCANNAME routine with
register 4 pointing to TAB LE3. The
device type and class are picked up
directly from TABLE3. SCANIPL ERROR52 5 If the DI RECTORY control statement DMKDIR SCANDIRE is not the first control statement, DMKDIR752E STATEMENT ERROR52 SEQUENCE ERROR FOLLOW- ING USER user
appears on the console followed by the
statement that was out of sequence.
Directory processing is terminated after
scanning the remaining statements for
syntax.
The SCANDI RE routine sets up to up- date the 10BLOK. The output device
address is stored in DASDADD, and the
serial number is stored in DASDVSER. SCANSPEC The DIRFLAG is set to a hexadecimal
SCANNAME
value that indicates the device type of
the output unit. Then, the SCANDI RE SCANCTCA routine gets the pointer to the first page
of the directory and machine buffer
areas. SCAN2701 SCAN2702 SCAN2703 Diagram 4-4. DMKDIR Control Statement processing
86 IBM VM/370 Service Routines Program Logic
Notes
1 All of the user directory, user machine, and user device buffers that were used
are written. The buffers are written
out by loading the DASD address into
register 2, loading the buffer address
into register 1, and then branching and I linking to the V'JR!TE ioutine. 2 Th""""''' tabl,;, b,;". A "bl, I I setting of X,04' indicates an unallocated
cyiinder and X'OC' indicates an allocated cylinder. The VOLl and allo· cation records are written.
3 First the return PSW is set up and
Registers 1 and 2 are set to the volume serial number. The user directories
are swapped via a DIAGNOSE call
to DMKUDRDS. The DIAGNOSE will
program check if the user is not class A, B, or C. The directories are not
swapped if the volume is not found
in the OWNDLIST or if an I/O error occurs under CPo The message EOJ DIRECTORY UPDATED
appears on the console and control I returns to CMS. I If no errors occur, and if the active I system directory was updated, the
directories are swapped. The message I EOJ DIRECTORY UPDATED AND I ON LINE
appears on the console and control returns to CMS. Module DMKDIR Write out all the used buffers.
2 Build and write allocation record.
3 If running under the control of VM/370, swap directories, issue
message and return to CMS. 4 If running standalone, issue
message and enter wait state.
Label Ref Notes I- - - - -;> I CMS EXIT 4 If not running under VM/370, the
message EOJ DIRECTORY UPDATED
appears on the console and the wait
state is entered by loading the DMKDIR ISCANAll1 SVCNEW PSW. I DMKDiR MOVEPSW LOOP 11
Directory
Module Label Ref DMKDIR BARE
Diagra. 4-5. Directory Exit Chapter 4. t!KDIR--The Directcry progra. 87
Previous Page Next Page