+ Reply to Thread
Results 1 to 2 of 2

Thread: Cursors in SQLRPGLE

  1. #1

    Default Cursors in SQLRPGLE

    I am using cursor in one of my SQLRPGLE program; after I 'OPEN'ed the cursor, 'FETCH' the record and now if I don't specify the 'CLOSE' cursor command then what will be the result, will everything go fine at the end of the program (when *inlr is set to '1') or would it result in error?

  2. #2

    Default

    It depends what else is being done. If the file is being updated your commitment control must be in full order, or otherwise your updates will not take effect. Records may remain locked, and subsequent reads may not be positioned properly.

    Rather than take any chances, just include the CLOSE after your loop concludes.

    Dave

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts