Commit issued without hold and without close cursor statemen

IBM's flagship relational database management system
ravi11081992
Posts: 19
Joined: Mon Apr 30, 2018 5:47 pm
Skillset: Mainframes
Referer: Friends

Commit issued without hold and without close cursor statemen

Postby ravi11081992 » Sat Jan 22, 2022 2:42 pm

Hi,

If I use 'cursor without hold' and
after fetching all the records if I issue commit without having a 'Close cursor' statement

Will it be an issue opening the cursor again when I run the program again

Please let me know

Thanks

User avatar
prino
Posts: 641
Joined: Wed Mar 11, 2009 12:22 am
Skillset: PL/I - CICS - DB2 - IDMS - REXX - JCL, most in excess of three decades
Referer: Google
Location: Vilnius, Lithuania
Contact:

Re: Commit issued without hold and without close cursor stat

Postby prino » Tue Jan 25, 2022 2:47 am

Why the flipping 'ell don't you try with a test program?
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy

engh
Posts: 17
Joined: Fri Jul 08, 2022 7:29 pm
Skillset: leblesmoutilabiskouti
Referer: leblesmoutilabiskouti

Re: Commit issued without hold and without close cursor stat

Postby engh » Tue Sep 20, 2022 6:07 pm

in case the answer is still awaited : yes, closing the cursor like committing the transaction causes the cursor pointer to be lost.
There is therefore no other solution than to specify "with hold" to avoid this inconvenience.


  • Similar Topics
    Replies
    Views
    Last post