Donald,
That's right. Any address space with the token can access the data space.
Something like this:
*************************************************************
* Create the Dataspace *
*************************************************************
DSPSERV CREATE, +
NAME=dspname, +
SCOPE=COMMON, +
KEY=8*16, +
STOKEN=stoken, Where to put the STOKEN +
BLOCKS=(max,init), Size of dspc (max,init) +
ORIGIN=origin
LTR R15,R15
BNZ fail
*
*************************************************************
* Obtain an ALET for the Dataspace
*************************************************************
ALESERV ADD,ALET=alet, +
STOKEN=stoken, +
CHKEAX=NO, +
AL=PASN, +
ACCESS=PUBLIC
LTR R15,R15
BNZ fail
...
...
STOKEN DS XL8 STOKEN of dataspace
DSPNAME DS CL8 Name of dataspace
ALET DS AL4 ALET of dataspace
MAX DC F'4096' Max size in 4Kb blocks
INIT DC F'2048' Max size in 4Kb blocks
ORIGIN DS AL4 Address of first byte of dataspace
************************************************************
Hope this helps.
Best,
Steven St.Jean
http://sdsusa.com
> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:[email protected]] On
> Behalf Of Donald Likens
> Sent: Friday, December 07, 2012 3:50 PM
> To: [email protected]
> Subject: Common Data Space Basics
>
> I've studied the manuals but before I start coding to use a Common Data
> Space I want to confirm that for a common data space access is by the
> PASN-AL and the ALESERV creates a PASN-AL for all the address spaces.
>
> So all I have to do is issue the DSPSERV CREATE,TYPE=BASIC,SCOPE=COMMON
> and ALESERV ADD,AL=PASN once and pass the ALET to all address spaces that
> access this dataspace. Correct?
>
> Is there additional overhead accessing data spaces as opposed to accessing
> primary storage? (I expect not) If an address space is created after the
> ALESERV macro is executed, can the new address space access the data
> space?
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions, send email
> to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN