Cursor remain open or close when control returns to calling program

Cursor remain open or close when control returns to calling program Lets say there is a cobol program A, which calls another cobol DB2 program There is a cursor in program B, we do open it, fetch it but do not close it inĀ  Now when the control returns back to A, would the cursor be closed, since the control is no more with the program which is using the cursor or would it remain open.