View previous topic :: View next topic
|
Author |
Message |
G1NXU6T
New User
Joined: 22 Jun 2009 Posts: 11 Location: India
|
|
|
|
hi
I am linking program B from Program A and have issued SYNCONRETURN in the link statement of program A.
Now before taking the commits in program B I need to check, whether program B has been linked WITH SYNCONRETURN or NOSYNCONRETURN. How i can do this.
Many thanks. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
IIRC, keyword SYNCONRETURN is the default for DPL (Distributed Program Link) API's. I'm not 100% certain about non-DPL.
In any event, I would suggest reviewing the applicable CICS manual to verify DPL and non-DPL (Links within own region) API's and their default and/or specific use of SYNCONRETURN.
There's a manual link found on the Main page: www.ibmmainframes.com/manuals.php
Bill |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Perhaps I misread your question, but are you asking how to programmatically check whether a DPL'd program was translated with the SYNCONRETURN keyword in the LINK API?
The answer is yes, it is possible but it's not easy.
An exitprogram (Assembler only) which interrogates the R1 parmlist would need to be written and after checking the parmlist, would determine whether SYNCONRETURN is active in this LINK API.
Why not just look at the translated/compiled program?
You're delving into some advanced areas of CICS.
Bill |
|
Back to top |
|
|
G1NXU6T
New User
Joined: 22 Jun 2009 Posts: 11 Location: India
|
|
|
|
thanks for the information Bill.
EXEC CICS ASSIGN STARTCODE has solve my problem
Form this i can find out if the called program is invoked with SYNCONRETURN or not. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Yes, that's correct and my approach wasn't.
You can teach an old dog new tricks....
Bill |
|
Back to top |
|
|
|