IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Accessing memory across different CICS AOR regions.


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rathinakarthik

New User


Joined: 25 Jul 2006
Posts: 24

PostPosted: Fri Jul 17, 2009 5:22 pm
Reply with quote

Hi,

I am facing an issue in accessing the memory set in one CICS Region, which is set in another CICS AOR. I am doing a DPLink to region B(assume) from region A. I am passing memory reference in pointer in linkage from A to B. The programs in region B are failing while accessing the memory. Is there any restrictions.
Please advise.

Thank you
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Fri Jul 17, 2009 5:44 pm
Reply with quote

You can't pass storage-addresses from PGM "A" and expect them to be successfully resolved in DPL'd PGM "B", which resides in a completely different region, regardless whether this region is in the same or different LPAR.

Memory storage-addresses are local to the region where they reside.

You'll have to find another way to accomplish this.

Also, Dynamic CALL USING (if you're exploring this) are for Local calls, not for Remote.
Back to top
View user's profile Send private message
rathinakarthik

New User


Joined: 25 Jul 2006
Posts: 24

PostPosted: Fri Jul 17, 2009 6:13 pm
Reply with quote

Thank you for your reply.

I tried the same scenario with another region. It worked fine.

A -DPL-> C Working fine
A -DPL-> B Getting error while accessing memory

DPLed pgm is same in C and B. Both are in same LPAR.
Could you please advise?

Thank you
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Fri Jul 17, 2009 6:57 pm
Reply with quote

I would have to surmise that you were lucky, because you ran this in a Test environment across low-usage regions.

I will guarantee you if this is implemented into Production, you will wreak havoc, because you will corrupt the storage located at the passed-address of the remote region and (quite possibly) cause a Storage Violation (SM010x), especially if you hit the SCZ of the acquired storage and wipe it out or at the very least, corrupt whatever is at the address that you've passed, which could contain anything.

But, I've given you my recommendations (IE: 02 cents) and that's about all I can do.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts How to avoid duplicating a CICS Web S... CICS 0
Search our Forums:

Back to Top