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.
Joined: 06 Jun 2008 Posts: 8117 Location: East Dubuque, Illinois, USA
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.
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.