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
 

 

Channel and container

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

New User


Joined: 14 Sep 2006
Posts: 71
Location: Bangalore

PostPosted: Fri Mar 27, 2009 2:03 am    Post subject: Channel and container
Reply with quote

Hi..

i am giving container and channel code.Plz let me know if some thing is wrong

requriement: pgm a need to call pgmb using chennal and container concept

Code:
pgma:
EXEC CICS PUT
CONTAINER(CONTA)
CHANNEL(CHANNELA)
FROM(WS-REQUEST)
RESP(WS-RESP)
END-EXEC

EXEC CICS LINK
PROGRAM('PGMB')
CHANNEL(CHANNELA)
RESP(WS-RESP)
END-EXEC



Plz let me know:
1.Does this channel name need to be same in PGMA and PGMB

2.Do we have to declare this channel and container name any where in working , linkage or dfhcomarea?.If not in linkage then how data will be transffer to PGMB

3.In PGMB how to receive this container data.Is it via GET CONTAINER.If yes, do we have to declare channel or container it in linkage section?

If possible could you plz provide me sample pgm to pass and receive data from container

Thanks in advance
Back to top
View user's profile Send private message

koppineedi

New User


Joined: 19 Sep 2007
Posts: 7
Location: chennai

PostPosted: Fri Mar 27, 2009 9:21 am    Post subject: Reply to: channel and container
Reply with quote

1.Does this channel name need to be same in PGMA and PGMB

The channel name should be same on PGMA and PGMB.

2.Do we have to declare this channel and container name any where in working , linkage or dfhcomarea?.If not in linkage then how data will be transffer to PGMB.

The channel and corresponding conatiners can be declared in working storage section or they can be in a copybook. If declared in a copybook pls include the copybook in PGMA and PGMB or if in ws section pls have the same structure in PGMA and PGMB. With channels and containers we need not declare the passing data in working storage of PGMA and the same in linkage section of PGMB. CICS will handle, identifying the channels and containers passed between the pgms.


3)In PGMB how to receive this container data.Is it via GET CONTAINER.If yes, do we have to declare channel or container it in linkage section?

Yes, you have to use GET CONTAINER to retrieve the data. No need to declare channel or container in linkage section.

http://publib.boulder.ibm.com/infocenter/cicsts/v3r1/index.jsp?topic=/com.ibm.cics.ts31.doc/dfhp4/commands/dfhp4_release.htm

Pls go through the above link to find the information your looking for,also lot other useful information is present.

Thanks,
Hari.
Back to top
View user's profile Send private message
koppineedi

New User


Joined: 19 Sep 2007
Posts: 7
Location: chennai

PostPosted: Fri Mar 27, 2009 9:33 am    Post subject:
Reply with quote

Sorry..refer this link.
http://publib.boulder.ibm.com/infocenter/cicsts/v3r1/index.jsp

Click on introduction to channels and containers--> basic example.

Thanks,
Hari..
Back to top
View user's profile Send private message
roopannamdhari
Warnings : 1

New User


Joined: 14 Sep 2006
Posts: 71
Location: Bangalore

PostPosted: Fri Mar 27, 2009 10:16 pm    Post subject:
Reply with quote

Already PGMA is coded it is having channel by name 'CHANA'.I have to code PGMB which pass data to PGMA using channel.

1.Do i have to use same channel name in PGMB as it is in PGMA
in other words do i have to use 'CHANA' as channel name in PGMB to pass data to PGMA


thanks in advance
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Mar 27, 2009 11:48 pm    Post subject:
Reply with quote

Hello,

Suggest you re-read the previous info. . .
Quote:
The channel name should be same on PGMA and PGMB.


Maybe there is something i misunderstand icon_question.gif
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 QUESTION: RETURN CHANNEL pahiker CA Products 21 Thu Apr 20, 2017 12:31 am
No new posts APPEND in PUT CONTAINER sambap CICS 3 Tue Aug 12, 2014 5:36 pm
No new posts *MASTER*, MISSING CHANNEL AND DEVICE END Manshadi DB2 2 Wed May 21, 2014 4:24 pm
No new posts Problem in Channel connectivity at Cl... Thamilselvi Java & MQSeries 2 Fri Jun 29, 2012 10:24 am
No new posts GET CONTAINER with SET option Eshwar CICS CICS 1 Wed Oct 19, 2011 11:11 am


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