Executing a VSAM Function for an OS User
as user requests for services are handled by DOS/VS code that
resides in theDCSS. To access this code, as VSAM requests are
intercepted by themodule DMSVIP, the interface between the as VSAM requests and the CMS/DOS and DOS/VS VSAM routines.
BecauseDMSVIP is in the CMSVSAM segment, it is available only when
thatsegment is loaded. Module DMSVIB, which resides in the CMS nucleus, is a bootstrap routine to load the CMSVSAM segment and pass
control toDMSVIP. DMSVIP receives control fro. VSAM request macros in three ways: via SVC (e.g. OPEN and CLOSE), via a direct branch using the address of DMSVIP in the ACB, and via a direct branch to the location of DMSVIP whose address is 256 bytes into the CMSCVT (CMSCVT is a CMS control
block that simulates theas CVT control block) • This last technique is used by the code generated fro. the as VSAM control block 1I<=lnip111<=ltion SHOVCE
i TFSTCE. Tnat is, the address at 256 into CVT is assumed to be that of a control block
that is at displacement1'12' has the address of the VSAM control block
manipulation routine. To ensure thatDMSVIP receives control fro. these
requests, the address ofDMSVIP is stored at 256 bytes into CMSCVT. However, until the segment is loaded, the address at CMSCVT+256 is the address of module DMSVIB rather than the address of DMSVIP. The
address ofDMSVIP replaces that of DeSVIB when CMSVSAM is loaded. Both DMSiIB and DMSVIP have pointers to themselves at 12 'bytes into themselves to ensure that this technique works.
Figure 21 shows the relationships in storage between
program, the ossimulation and interface routines, and the CMSVSAM DCSSs. the user CMSDOS and OS VSAM Program OPEN ACBl CLOSE ACBl Figure 21. CMS Module oMSSOP DMSVIP oMSSOP19 oOSOPEN BALR 14,15 DMSSOP20 DOSCLOSE BALR 14,15 Relationship in
Simulation andCMSVSAM DCSSs DOS Transient CMSDOS DCSS DMSDOS DMSBOP DMSCLS Storage between the User Interface Routines, and
B-disk
forOS or DOS User Program, the
theCMSDOS CS and
The following description illustrates the overall logic of that
control flow.
2-118IBM System Logic and Program Determination--Volume 2
as user requests for
resides in the
intercepted by the
Because
that
control to
block that simulates the
i
that is at displacement
manipulation routine. To ensure that
requests, the address of
address of
Figure 21 shows the relationships in storage between
program, the os
Simulation and
B-disk
for
the
The following description illustrates the overall logic of that
control flow.
2-118