z/OS MVS Programming: Extended Addressability Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Example of creating and using a shared memory object – GETSHARED

z/OS MVS Programming: Extended Addressability Guide
SA23-1394-00

The following example creates a shared memory object one megabyte in size. It specifies a constant with value of one as a user token.
IARV64 REQUEST=GETSHARED,
       SEGMENTS=ONE_SEG,
       USERTKN=USERTKNA,
       ORIGIN=VIRT64_ADDR,
       COND=YES,
       FPROT=NO,
       KEY=MYKEY,
       CHANGEACCESS=LOCAL
ONE_SEG	DC FD'1'
USERTKNA	DC 0D'0'
        	DC F'15' High Half must be non-zero
	      	DC F'1'  UserToken of 1
VIRT64_ADDR DS  D
Note: If you want the memory object to have key 9, the declaration for MYKEY is as follows:
MYKEY  DC X'90'

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014