* ESTABLISH ADDRESSABILITY TO THE DATA SPACE
.
ALESERV ADD,STOKEN=DSPCSTKN,ALET=DSPCALET
.
LAM 2,2,DSPCALET LOAD ALET OF SPACE INTO AR2
L 2,DSPCORG LOAD ORIGIN OF SPACE INTO GR2
USING DSPCMAP,2 INFORM ASSEMBLER
.
L 5,DSPWRD1 GET FIRST WORD FROM DATA SPACE
USES AR/GPR 2 TO MAKE THE REFERENCE
.
DSPCSTKN DS CL8 DATA SPACE STOKEN
DSPCALET DS F DATA SPACE ALET
DSPCORG DS F DATA SPACE ORIGIN RETURNED
DSPCMAP DSECT DATA SPACE STORAGE MAPPING
DSPWRD1 DS F WORD 1
DSPWRD2 DS F WORD 2
DSPWRD3 DS F WORD 3
Using the DSECT that the program established, the program can easily manipulate data in the data space.
It is possible to use ALESERV ADD to obtain an entry for a hiperspace. For information on how hiperspaces use ALETs, see Obtaining additional HSPSERV performance.