Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Channels and containers

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
jcr

New User


Joined: 12 Apr 2007
Posts: 8
Location: Australia

PostPosted: Tue Jan 29, 2008 5:54 am    Post subject: Channels and containers
Reply with quote

I have a question about channels. Consider the following simple scenario:

- TranA creates ChannelA
- TranA starts TranB, passing ChannelA
- TranB gets ChannelA

TranA may be run concurrently by any number of users, so there may be any number of ChannelA's being PUT at the same time, and hence any number of ChannelA's being 'got' at the same time. Is CICS able to tell which TranB gets which ChannelA, or will there be contention? ie. does the channel name have to be uniquely generated each time, eg ChanAxxx where xxx = some randomly generated string?
Back to top
View user's profile Send private message

koppineedi

New User


Joined: 19 Sep 2007
Posts: 7
Location: chennai

PostPosted: Tue Jan 29, 2008 11:06 am    Post subject:
Reply with quote

Hi,

There will be no contention.

To ensure that programs cannot interfere with each others working storage, CICS obtains a separate copy of working storage for each execution of an application program. Thus, if a user application program is in use by 11 user tasks, there are 11 copies of working storage in the appropriate dynamic storage area (DSA).

WORKING-STORAGE SECTION.
*CHANNEL NAME
01 INSURANCE-CHANNEL PIC X(20) VALUE 'INSURDETAILS'.
*CONTAINER NAME
01 INSURER-NAME PIC X(20) VALUE 'INSRNAME'.
01 INSURED-NAME PIC X(20) VALUE 'INSDNAME'.
01 CITY PIC X(10).

for example if the transaction is run concurrently by two users copies of 2 working storage will be made.

2nd question-

does the channel name have to be uniquely generated each time, eg ChanAxxx where xxx = some randomly generated string?

no you need not generate the channel name uniquely.


Regards,
Haranadh.
Back to top
View user's profile Send private message
jcr

New User


Joined: 12 Apr 2007
Posts: 8
Location: Australia

PostPosted: Tue Jan 29, 2008 11:32 am    Post subject: Reply to: Channels and containers
Reply with quote

Thanks for that. I knew that was the case for working storage.
But I thought channels/containers were stored outside the program's working storage, in a location managed by CICS?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Porting to Channels and Containers yugendran CICS 3 Thu Nov 12, 2015 1:02 pm
No new posts issues with memory in programs with c... sivakumar.karthik CICS 4 Thu Aug 13, 2015 8:56 pm
No new posts Performance testing - Channels and Co... madhand Testing & Performance analysis 1 Tue Jan 20, 2015 10:14 am
No new posts Problem creating cluster channels Midhun Mohandas Java & MQSeries 4 Wed May 28, 2014 3:34 pm
No new posts Easytrieve Print Channels RickRock CA Products 1 Wed Feb 01, 2012 2:09 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us