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

CICS DPL call


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

New User


Joined: 05 Jan 2009
Posts: 55
Location: Dublin

PostPosted: Thu Jun 16, 2022 1:06 am
Reply with quote

Hi Team,
Please help the SYSID can be associated to one or multiple remote programs

EXEC CICS LINK
PROGRAM ('PROG2')
COMMAREA (WS-COMMAREA)
LENGTH (WS-LEN)
SYSID(‘CICR’)
TRANSID(‘TRN2’)
SYNCONRETURN
END-EXEC.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Thu Jun 16, 2022 2:15 am
Reply with quote

Not quite. SYSID refers to the system name of a CICS region. That CICS region can have hundreds, if not thousands, of programs defined to it -- just like any other CICS region. The SYSID is not arbitrary -- it is established by a system programmer when creating the CICS region and hence is known to the operating system as well as CICS.
Back to top
View user's profile Send private message
Vkp321

New User


Joined: 05 Jan 2009
Posts: 55
Location: Dublin

PostPosted: Thu Jun 16, 2022 10:50 pm
Reply with quote

Thank you Robert.

How to pass updated values from DPL program to client region?
Back to top
View user's profile Send private message
Vkp321

New User


Joined: 05 Jan 2009
Posts: 55
Location: Dublin

PostPosted: Wed Jun 22, 2022 12:45 am
Reply with quote

Hi Robert,
Do you know the exact COMMAREA size to pass to the DPL program. Any IBM manual to support this change
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Wed Jun 22, 2022 1:53 am
Reply with quote

COMMAREA is a user area and as such the length depends entirely upon the programmer and the application -- it could be anything from zero bytes to 24K-1 (or 32K-1 depending). The sample program given in www.ibm.com/docs/en/cics-ts/5.3?topic=dmscwmb-example-request-message-dpl-program-through-cics-websphere-mq-bridge uses 100 for the COMMAREA length; other programs and applications may use longer or shorter COMMAREA. The how-to is in www.ibm.com/docs/en/cics-ts/5.3?topic=dpl-introduction-programming and if you really want to know how it works, start coding and testing programs.
Back to top
View user's profile Send private message
Vkp321

New User


Joined: 05 Jan 2009
Posts: 55
Location: Dublin

PostPosted: Wed Jun 22, 2022 2:09 pm
Reply with quote

Thank you Robert for your answer, you are right
I worked on DPL program and could see the 32767(32KB - 1Byte) bytes passed and processed at remote program
when I tried to send 32768 bytes (32KB) the client program Error out for the COMMAREA length error

So it confirms the max size 32KB means 32KB - 1 Byte however
it is not declared on IBM manual specifically so I asked the query

www.ibm.com/common/ssi/ShowDoc.wss?docURL=/common/ssi/rep_sm/4/877/ENUS5655-Y04/index.html
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1162
Location: Dublin, Ireland

PostPosted: Wed Jun 22, 2022 7:49 pm
Reply with quote

If the 32k-1byte limitation is a concern, try using Channels and Containers which removes the limitation.

Garry.
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 How can I find the DDname of a file u... CICS 10
No new posts CICS COMMAREA CICS 3
No new posts interactive cics program using CICS s... CICS 5
No new posts Getting TWA in CICS program while con... CICS 14
No new posts CICS V 5.6 provides support for COMMA... CICS 4
Search our Forums:

Back to Top