+ Reply to Thread
Results 1 to 4 of 4

Thread: journaling of files in SQLRPGLE programming

  1. #1

    Default journaling of files in SQLRPGLE programming

    I get an error while running a SQLRPGLE program that uses SQL statements on files that are not journaled. i don't want to journal the files. Is there a way to use these files in SQLRPGLE without journalling

  2. #2

    Default

    On the CRTSQLRPGI command there is the parameter COMMIT. The default for COMMIT is *CHG, which requires that the tables/files referenced by your imbedded SQL be journaled (plus a few other things). Try specifying COMMIT(*NONE) on the CRTSQLRPGI and then run your program again. You should find that journaling is no longer required.

    Hope this helps,
    Bruce Vining

  3. #3

    Default

    One way is to add "WITH NC" to the end of your statement. e.g. - Update xxxx set y to z with NC.

    Dave

  4. #4

    Default

    You might also include the following statement: "Exec sql Set Option Commit=*none". This will ensure when the program is compiled, that one doesn't have to remember to override the compile option each time.

+ 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