Submitted Questions

  • Called and calling program for cobol with cursor

    I have program A which is calling B first time. B program is feaching data using cursor , but some mess happened and the control went back to pro A without closing cursor . Once again program A called program B then what will happen to cursor. will program fetch the data.

    Kalyan

    • Mar 20th, 2018

    It depends on how program b is linked. Above answer is correct for statically linked. But if dynamically linked then program b will be in initial state in 2nd time and no error will come.

    Anand Jeyapaul

    • Oct 26th, 2017

    How do we avoid the error code of -502? How do we close the cursor in the calling program?