Frank,

The way I would approach this for sharing data between two address spaces with 
IARVSERV is as follows :

(1) Before the IARVSERV is issued by the "source owning" program (in ASID #1) , 
the "target view" program (in ASID #2) must obtain the storage area that is 
going to be used to get the view of the data. 

(2) The "target view" program must then inform the "source owning" program of 
the view storage area STOKEN (or ALET) and starting address.

(3) The "source owning" program populates the IARVRL fields with the 
information provided by the "target view" program and then specifies the IARVRL 
address on the RANGLIST keyword for the IARVSERV service.

(4) Note that only the "source owning" program performs the IARVSERV service.   
 

Rob Scott
Lead Developer
Rocket Software
77 Fourth Avenue . Suite 100 . Waltham . MA 02451-1468 . USA
Tel: +1.781.684.2305
Email: [email protected]
Web: www.rocketsoftware.com

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Bonaduce, Frank
Sent: 09 September 2012 16:23
To: [email protected]
Subject: IARVSERV

Folks -

I would like to know if anyone can provide an example (BAL) of using IARVSERV 
on the target end of the page-sharing process, particularly between code 
running in two or more different address spaces ?  The method of creating the 
source data side of this process appears fairly straightforward, whether you 
choose to use private storage in the first address space or create a 
dataspace/hiperspace to use for sharing. The question is how to establish the 
'connection' in the code running in the address space(s) that will use the 
target data. I'm assuming it to be another invocation of IARVSERV using the 
STOKEN and/or ALET from the original address space. Am I on the right track 
here or is there another approach ?

Thanks,
Frank
GSG Systems

----------------------------------------------------------------------
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

Reply via email to