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
 

 

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: 7931
Location: Bellevue, IA

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: 7931
Location: Bellevue, IA

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 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
No new posts LINK Call srajendran2 CICS 2 Fri Apr 22, 2016 1:35 am
No new posts Replacing Start Transid with LINK pkmurali CICS 12 Tue Apr 19, 2016 8:22 pm


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