Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
ReadNext after issuing Link(Ws-pgm) .ws-pgm has Syncpoint

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
pdp123

New User


Joined: 15 Jul 2008
Posts: 6
Location: Chennai

PostPosted: Fri Nov 27, 2009 2:55 pm    Post subject: ReadNext after issuing Link(Ws-pgm) .ws-pgm has Syncpoint
Reply with quote

Hi

i need help on the below issue.

The requirement program[VSAMPGM1] is to read a vsam file -ESDS [Using Start BR] and then perform till EOF of the vsam for every record [Issue Link to another program-LINKPGM1 ]. LINKPGM1 has a syncpoint command. When the link is returned to VSAMPG1 and the READNEXT command issued getting resp code RESP1-16 and RESP2-34.

Please suggest.
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8151
Location: East Dubuque, Illinois, USA

PostPosted: Fri Nov 27, 2009 5:45 pm    Post subject:
Reply with quote

The same thing came up in this forum a week or two ago. SYNCPOINT declares the end of a unit-of-work (UOW), which means a browse is automatically ended. You can take the SYNCPOINT out of LINKPGM1, or change your calling program logic so you are not doing a browse.
Back to top
View user's profile Send private message
pdp123

New User


Joined: 15 Jul 2008
Posts: 6
Location: Chennai

PostPosted: Mon Nov 30, 2009 2:30 pm    Post subject: Reply to: ReadNext after issuing Link(Ws-pgm) .ws-pgm has S
Reply with quote

Thanks for the suggestion. we could not remove the syncpoint in linkpgm1 as it is called by other programs as well. we are writing to tsq/array and calling the linkpgm1 which works fine. would like to know if we can read the i/p vsam -esds anyother way from [vsampgm1]and issue the link[call linkpgm1] for each record in the i/p file without losing the pointer.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8151
Location: East Dubuque, Illinois, USA

PostPosted: Mon Nov 30, 2009 5:35 pm    Post subject:
Reply with quote

Save the current key (to WORKING-STORAGE, a TS queue, or wherever you want to keep it) before the call to linkpgm1 and then do a direct read or start using that key.
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 DIrect link of dynam/nodynam nkjain87 COBOL Programming 2 Mon Apr 24, 2017 6:23 pm
No new posts CICS Question RE: Browse, Readnext an... moezbud CICS 7 Sun Mar 05, 2017 5:45 am
No new posts compile and link program in 6.1 brigitte pruett COBOL Programming 3 Tue Aug 16, 2016 12:09 am
No new posts Event-driven programming (BTS) VS (ST... Rohit Umarjikar CICS 2 Sat Jun 11, 2016 2:05 am
No new posts Issuing IMS-Commands from a program w... SWP COBOL Programming 1 Fri Jun 03, 2016 4:31 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us