View previous topic :: View next topic
|
Author |
Message |
pdp123
New User
Joined: 15 Jul 2008 Posts: 6 Location: Chennai
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, 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. |
|
Back to top |
|
|
pdp123
New User
Joined: 15 Jul 2008 Posts: 6 Location: Chennai
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
|