We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 28
• A data space is a range of up to two gigabytes
of contiguous virtual storage addresses that a
program can directly manipulate through assembler instructions.
• Unlike an address space, a data space can hold
only data or programs stored as data.
Suresh’s cook book for
LEMURIA TECHNOLOGIES LTD ASSEMBLER data in a data space • Tables, arrays, or matrixes • Data base buffers • Temporary work files • Copies of permanent data sets
Suresh’s cook book for
LEMURIA TECHNOLOGIES LTD ASSEMBLER Accessing data in a data space
Suresh’s cook book for
LEMURIA TECHNOLOGIES LTD ASSEMBLER An example of using a data space • Application to improve its performance ‐ If the tables were to reside in data spaces,
• one table to each data space, the tables would
then be accessible to the program through assembler instructions.
Suresh’s cook book for
LEMURIA TECHNOLOGIES LTD ASSEMBLER Creating and using data spaces‐ DSPSERV • Create a data space • Release an area in a data space • Delete a data space • Expand the amount of storage in a data space currently available to a program. • Load an area of a data space into central storage • Page an area of a data space from central storage Suresh’s cook book for LEMURIA TECHNOLOGIES LTD ASSEMBLER • When a program uses the DSPSERV macro to create a data space, the system returns a STOKEN that uniquely identifies the data space. (Data spaces do not have ASIDs.)
• The program then gains access to the data
space: it uses the ALESERV macro to add an entry to an access list and obtain an access list entry token (ALET). Suresh’s cook book for LEMURIA TECHNOLOGIES LTD ASSEMBLER Access list entry token (ALET)
Suresh’s cook book for
LEMURIA TECHNOLOGIES LTD ASSEMBLER The access list can be one of two types: • A dispatchable unit access list (DU‐AL) — the access list that is associated with a TCB or SRB
• A primary address space access list (PASN‐AL)
— the access list that is associated with an address space
Suresh’s cook book for
LEMURIA TECHNOLOGIES LTD ASSEMBLER AR‐mode programming support • to manipulate data in a data space, your program must use the – set of general purpose registers (GPRs) – plus another set of registers called access register
Suresh’s cook book for
LEMURIA TECHNOLOGIES LTD ASSEMBLER AR‐mode programming support • What is an access register (AR)? • An AR is a hardware register that a program uses to identify an address space or a data space. • Each processor has 16 ARs, numbered 0 through 15, and they are paired one‐to‐one with the 16 GPRs.
Suresh’s cook book for
LEMURIA TECHNOLOGIES LTD ASSEMBLER Address space control (ASC) • In primary mode, your program can access data that resides in the program's primary address space. • In AR mode, your program can access data that resides in the address space or data space that the ARs indicate • SAC 512 sets the ASC mode to AR mod • SAC 0 sets the ASC mode to primary mode Suresh’s cook book for LEMURIA TECHNOLOGIES LTD ASSEMBLER Relationship between the data space and its owner • Your program can create a data space, but it cannot own the data space.
• If the unit of work that represents the
program is a TCB, that TCB is the owner of the data space
• When a TCB terminates, the system deletes
any data spaces that the TCB owns. Suresh’s cook book for LEMURIA TECHNOLOGIES LTD ASSEMBLER • Scope=single, scope=all, and scope=common data spaces
Suresh’s cook book for
LEMURIA TECHNOLOGIES LTD ASSEMBLER • SCOPE=SINGLE data spaces A SCOPE=SINGLE data space with an entry on a PASN‐AL can be used by programs running in the owner's address space.
• A SCOPE=SINGLE data space with an entry on
a DU‐AL can be used by programs represented by TCBs
Suresh’s cook book for
LEMURIA TECHNOLOGIES LTD ASSEMBLER SCOPE=ALL • can be used by programs running in the owner's primary address space and other address spaces
• provide a way to share data selectively among
programs running in multiple address spaces.
Suresh’s cook book for
LEMURIA TECHNOLOGIES LTD ASSEMBLER SCOPE=COMMON • can be used by all programs in the system.
• It provides a commonly addressable area
similar to the common service area (CSA).
Suresh’s cook book for
LEMURIA TECHNOLOGIES LTD ASSEMBLER DSPSERV • CREATING DATA SPACE
• [name] DSPSERV function, required‐parms
• FUNCTIONS: • CREATE,EXTEND,RELEASE,DELETE Manipulating the contents of ARs
Suresh’s cook book for
LEMURIA TECHNOLOGIES LTD ASSEMBLER Suresh’s cook book for LEMURIA TECHNOLOGIES LTD ASSEMBLER Issuing Macros instruction in AR mode • [name] SYSSTATE ASCENV=AR
• [name] SYSSTATE ASCENV=P
0F8 • The issuer of a Supervisor Call (SVC) instruction was not in the correct mode to issue the SVC.
310Access Solution Manual for Energy Environment and Sustainability 1st Edition by Moaveni ISBN 1133105092 9781133105091 All Chapters Immediate PDF Download