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
Commit issued without hold and without close cursor statemen
-
- Posts: 19
- Joined: Mon Apr 30, 2018 5:47 pm
- Skillset: Mainframes
- Referer: Friends
- 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
Why the flipping 'ell don't you try with a test program?
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
robert.ah.prins @ the.17+Gb.Google thingy
-
- Posts: 17
- Joined: Fri Jul 08, 2022 7:29 pm
- Skillset: leblesmoutilabiskouti
- Referer: leblesmoutilabiskouti
Re: Commit issued without hold and without close cursor stat
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.
There is therefore no other solution than to specify "with hold" to avoid this inconvenience.
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Is there a way to turn off the free=close bit
by jdechirico » Wed Apr 02, 2025 7:31 pm » in Assembler - 1
- 1140
-
by sergeyken
View the latest post
Wed Apr 02, 2025 8:08 pm
-
-
- 6
- 2345
-
by sergeyken
View the latest post
Thu Dec 09, 2021 8:10 pm
-
- 11
- 3691
-
by Pedro
View the latest post
Tue Dec 27, 2022 11:24 am