Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

how to check SYNCONRETURN in the called program.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: how to check SYNCONRETURN in the called program.
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Mon Jan 17, 2011 5:03 pm    Post subject: Reply to: how to check SYNCONRETURN in the called program.
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: http://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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Mon Jan 17, 2011 6:15 pm    Post subject: Reply to: how to check SYNCONRETURN in the called program.
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    Post subject:
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Mon Jan 17, 2011 7:38 pm    Post subject: Reply to: how to check SYNCONRETURN in the called program.
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us