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

How LOAD PROGRAM and LOAD on HOLD is said as affinity?


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

Active User


Joined: 15 Dec 2005
Posts: 271

PostPosted: Tue May 03, 2016 6:26 pm
Reply with quote

Dear All,


Please let me know, how EXEC CICS LOAD PROGRAM is mentioned as affinity. There are two types of affinity 1. transaction affinity and 2. Inter transaction affinity. I am not sure on which category LOAD is mentioned as affinity.

Thanks,
Murali
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue May 03, 2016 6:53 pm
Reply with quote

First, the IBM references talk about transaction-system affinity and not just transaction affinity. Terminology is critical in IT where similar things may mean very different things. If you meant transaction-system affinity, you should have said so. If you did not, what did you mean and what is your reference source for it?

From the CICS TS V4.2 Developing Applications manual:
Quote:
Note for dynamic transaction routing: Using LOAD with HOLD, or using a resource that has been defined with RELOAD=YES, could create inter-transaction affinities that adversely affect the use of dynamic transaction routing. See Affinity for more information about transaction affinities.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3051
Location: NYC,USA

PostPosted: Tue May 03, 2016 8:28 pm
Reply with quote

I have already shared this before to you but unfortunately you did not even look at that it seems.
I think , you want the answers in Yes or NO than doing some research reading it by your own. Because, your past few posts are all talking about CICS affinity and if you don't read what it is then how would you remove them?
see how load can become affinity
Robert already answered but look what more could be part of inter-transaction affinity.
5.2.2 CICS Transaction Affinities Utility
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: Tue May 03, 2016 8:45 pm
Reply with quote

LOAD with HOLD is a definite no-no, especially in a DTR environment.

If it's left on HOLD and the next task issues a LOAD with HOLD and then the next task and so on and so on, you run the risk of going SOS in this region, a serious problem. LOAD with HOLD must be explicitly released with a RELEASE PROGRAM API as it's not released at task termination.

Once it's on HOLD, are you writing to it? If not, then I don't understand the purpose of loading it into storage.

What about RES=YES in the PPT (different than LOAD HOLD) and (if you're writing to it) use the ENQ/DEQ API's, which ensures serialization.

But, the resource name used in the ENQ/DEQ API's needs to be the same for all programs updating this table (resource) as you'll have multiple TCB's in a Threadsafe environment.

HTH....
Back to top
View user's profile Send private message
pkmurali
Warnings : 1

Active User


Joined: 15 Dec 2005
Posts: 271

PostPosted: Thu May 12, 2016 8:47 pm
Reply with quote

Thanks Robert,Rohit & Bill for your response.
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 Load new table with Old unload - DB2 DB2 6
No new posts How to load to DB2 with column level ... DB2 6
No new posts REASON 00D70014 in load utility DB2 6
No new posts DB2 Event passed to the Application P... DB2 1
Search our Forums:

Back to Top