System for providing application programs with direct addressability into a shared dataspace
First Claim
1. In an operating system executing on a computer, a method of sharing dataspaces among a plurality of applications executing in the computer, the method comprising steps of:
- (a) initializing a Dataspace Services (DataServ) Subsystem in the computer, the initializing step further comprising the steps of obtaining storage for a DataServ Router Table (DSRT) in an Extended Common Storage Area (ECSA) provided by the operating system, anchoring the DSRT by storing a pointer thereto in a SubSystem Communications Vector Table (SSCVT) residing in the ESCA, wherein the SSCVT is accessible through the operating system;
(b) executing a DataServ task in the computer, the executing step further comprising the steps of obtaining storage for a DataServ Vector Table (DSVT) in the ECSA, storing a job name for the DataServ task and a pointer to the DSVT in the DSRT, creating one or more dataspaces by invoking a utility of the operating system which returns STOKENs identifying the created dataspaces, obtaining storage for Dataspace Information Elements (DSIEs) in the ECSA, storing a pointer to the DSIEs in the DSVT, and storing the STOKENs in the DSIEs associated with the created dataspaces;
(c) executing an application in the computer, the executing step further comprising the steps of accessing the SSCVT via the operating system to retrieve the pointer to the DSRT, searching the DSRT for the job name of a particular DataServ task, accessing the DSRT to retrieve the pointer to the DSVT associated with the job name and thus the particular DataServ task, accessing the DSVT to retrieve the pointer to the DSIEs, searching the DSIEs for a name of a particular dataspace, accessing the DSIE to retrieve the STOKEN associated with the particular dataspace, and using the STOKEN to provide direct addressability to the dataspace; and
(d) repeating the executing step (c) for a plurality of applications.
1 Assignment
0 Petitions
Accused Products
Abstract
A method of sharing dataspaces among a plurality of applications on IBM mainframe computers. A DataServ Routing Table (DSRT) is anchored in an extended command storage area (ECSA) by a pointer stored in a SubSystem Communications vector Table (SSCVT) which also resides in the ECSA. The DSRT identifies all DataServ tasks using pointers to DataServ Vector Tables (DSVT), which are created by each DataServ task in the ECSA. Each DSVT contains a pointer to a DataServ task, as well as a pointers to associated Dataspace Information Element (DSIE) and DataServ Application Descriptor (DSAD) pools. The DSIEs contain a description of each dataspace created by the DataServ task. The DSADs contain a description of each application currently accessing a dataspace created by the DataServ task. Each DataServ task is responsible for creating one or more dataspace, mapping a linear dataset to the dataspace, and then making the dataspace available to authorized applications by creating its associated DSVT, DSIEs, and DSADs. An application communicates with the DataServ task through a DataServ Application Interface (DSAPPL), which is a set of service routines for accessing the DSRT, DSVT, DSIEs, and DSADs to provide direct addressability to the dataspaces.
70 Citations
18 Claims
-
1. In an operating system executing on a computer, a method of sharing dataspaces among a plurality of applications executing in the computer, the method comprising steps of:
-
(a) initializing a Dataspace Services (DataServ) Subsystem in the computer, the initializing step further comprising the steps of obtaining storage for a DataServ Router Table (DSRT) in an Extended Common Storage Area (ECSA) provided by the operating system, anchoring the DSRT by storing a pointer thereto in a SubSystem Communications Vector Table (SSCVT) residing in the ESCA, wherein the SSCVT is accessible through the operating system; (b) executing a DataServ task in the computer, the executing step further comprising the steps of obtaining storage for a DataServ Vector Table (DSVT) in the ECSA, storing a job name for the DataServ task and a pointer to the DSVT in the DSRT, creating one or more dataspaces by invoking a utility of the operating system which returns STOKENs identifying the created dataspaces, obtaining storage for Dataspace Information Elements (DSIEs) in the ECSA, storing a pointer to the DSIEs in the DSVT, and storing the STOKENs in the DSIEs associated with the created dataspaces; (c) executing an application in the computer, the executing step further comprising the steps of accessing the SSCVT via the operating system to retrieve the pointer to the DSRT, searching the DSRT for the job name of a particular DataServ task, accessing the DSRT to retrieve the pointer to the DSVT associated with the job name and thus the particular DataServ task, accessing the DSVT to retrieve the pointer to the DSIEs, searching the DSIEs for a name of a particular dataspace, accessing the DSIE to retrieve the STOKEN associated with the particular dataspace, and using the STOKEN to provide direct addressability to the dataspace; and (d) repeating the executing step (c) for a plurality of applications. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)
-
-
16. A method of sharing data residing in a data-only address space among a plurality of applications executing in a computer, the method comprising the steps of:
-
(a) initializing the data-only address space, the initializing step further comprising the steps of allocating the data-only address space in a memory location of the computer, loading data therein, allocating one or more control blocks in globally accessible memory locations of the computer, storing information in the control blocks that identifies the data-only address space, and establishing an anchor at a fixed location in the globally accessible memory that points to the control blocks; (b) executing an application, the executing step further comprising accessing the anchor at the fixed location, determining the globally accessible memory locations of the control blocks, accessing the control blocks at the determined locations, retrieving the information in the control blocks, resolving the information stored in the control blocks into an address for the memory location of the data-only address space, wherein the resolving step further comprises; (1) invoking a ALESERV macro-instruction to add an STOKEN identifying the dataspace to an access list attached to the application, wherein the ALESERV macro-instruction returns an access list index for the STOKEN, (2) switching into an access register (AR) address space control (ASC) mode so that the application can directly address the dataspace, and (3) loading the dataspace into an access register so the contents of both a general purpose register and the access register are resolved to a specific location in the dataspace, and accessing the data in the data-only address spaces using the address; and (c) repeating the executing step (b) for a plurality of applications.
-
-
17. An apparatus for sharing a dataspace stored in a memory of a computer among a plurality of applications executing in the computer, comprising:
-
(a) a dataspace services task, executing in the computer, for establishing a dataspace in the memory of the computer; (b) one or more control blocks, stored in globally accessible locations in the memory of the computer and anchored by a pointer in a fixed location, for storing information therein identifying the dataspace services task and the dataspace established thereby; and (c) an application interface, linked to each of a plurality of applications executing in the computer, comprising means for resolving the information stored in the control blocks into an address for the dataspace, wherein the means for resolving further comprises; (1) means for invoking a ALESERV macro-instruction to add an STOKEN identifying the dataspace to an access list attached to the application, wherein the ALESERV macro-instruction returns an access list index for the STOKEN, (2) means for switching into an access register (AR) address space control (ASC) mode so that the application can directly address the dataspace, and (3) means for loading the access list index of the STOKEN identifying the dataspace into an access register so the contents of both a general purpose register and the access register are resolved to a specific location in the dataspace, and means for transferring data between the dataspace and one of the applications.
-
-
18. An application interface for a plurality of applications accessing a shared dataspace located in a computer memory, comprising:
-
(a) means for attaching the application interface to the applications; (b) means for invoking the application interface from one of the applications to access the shared dataspace; and (c) means for passing parameters to the application interface to control access to the shared dataspace, the means for passing parameters comprising means for passing; (1) a BLOCK parameter containing a binary relative block number that identifies a specific block of data in the dataspace; (2) a KEY parameter containing a value that is used during access calls to identify a record within the specific block of data; (3) a BUFFER parameter containing an address to a working storage area in the application that is used to move data to or from the dataspace; (4) a WORK AREA parameter for storing an address to a working storage area within the DataServ task; (5) a CALL CODE parameter containing a value that indicates an initialization, access, and end-of-job access to the dataspace; (6) a DSAX NAME parameter containing a left justified, blank padded name of a DataServ Access Exit (DSAX) routine to use during access calls; (7) a SYSTEM NAME parameter containing a name for the DataServ task; (8) a Dataspace LIST parameter containing a two-byte binary number of the dataspaces owned by the DataServ task followed by a list of left justified, blank padded, 8 byte names for the dataspaces; (9) a Dataspace NAME parameter containing a name of a dataspace; (10) an APPLICATION ID parameter containing identifier of the application; and (11) a USER PARAMETER LIST parameter containing a pointer to an optional parameter list for the DSAX routine.
-
Specification