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

Channel and container


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
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
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
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.

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
Reply with quote

Sorry..refer this link.
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
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

Moderator Emeritus


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

PostPosted: Fri Mar 27, 2009 11:48 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Duplicate data in PUT CONTAINER using... CICS 4
No new posts DFHJSON-TRANSFRM container for WebSer... CICS 0
No new posts The disappearing channel CICS 5
No new posts QUESTION: RETURN CHANNEL CA Products 21
No new posts APPEND in PUT CONTAINER CICS 3
Search our Forums:

Back to Top