View previous topic :: View next topic
|
Author |
Message |
roopannamdhari Warnings : 1 New User
Joined: 14 Sep 2006 Posts: 71 Location: Bangalore
|
|
|
|
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 |
|
|
koppineedi
New User
Joined: 19 Sep 2007 Posts: 7 Location: chennai
|
|
|
|
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 |
|
|
koppineedi
New User
Joined: 19 Sep 2007 Posts: 7 Location: chennai
|
|
Back to top |
|
|
roopannamdhari Warnings : 1 New User
Joined: 14 Sep 2006 Posts: 71 Location: Bangalore
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
Back to top |
|
|
|