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

ReadNext after issuing Link(Ws-pgm) .ws-pgm has Syncpoint


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Nov 27, 2009 5:45 pm
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Nov 30, 2009 5:35 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts How can i link the RHDCSNON programa ... IDMS/ADSO 2
No new posts E1BRESP 22 while doing readnext CICS 2
No new posts MQPMO-NO-SYNCPOINT Java & MQSeries 19
No new posts Run don't walk to your nearest ZOWE l... All Other Mainframe Topics 4
No new posts LE Modules in Link Edit COBOL Programming 1
Search our Forums:

Back to Top