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

how to check SYNCONRETURN in the called program.


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

New User


Joined: 22 Jun 2009
Posts: 11
Location: India

PostPosted: Mon Jan 17, 2011 4:50 pm
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Mon Jan 17, 2011 5:03 pm
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Mon Jan 17, 2011 6:15 pm
Reply with quote

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
View user's profile Send private message
G1NXU6T

New User


Joined: 22 Jun 2009
Posts: 11
Location: India

PostPosted: Mon Jan 17, 2011 6:40 pm
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Mon Jan 17, 2011 7:38 pm
Reply with quote

Yes, that's correct and my approach wasn't.

You can teach an old dog new tricks.... icon_wink.gif

Bill
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 Using API Gateway from CICS program CICS 0
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
Search our Forums:

Back to Top