I am trying to insert records into a file in my SQLRPGLE program and am getting the following error
The file is not journaled and my SQL works fine using interactive SQL so it must be a compile option I am missing. I have compiled it COMMIT(*NONE). I have also specified USROPN in my program
Code:
Message . . . . : RFT_R00002 in QTEMP not valid for operation.
Cause . . . . . : The reason code is 3. Reason codes are:
1 -- RFT_R00002 has no members.
2 -- RFT_R00002 has been saved with storage free.
3 -- RFT_R00002 not journaled, no authority to the journal, or the journal
state is *STANDBY. Files with an RI constraint action of CASCADE, SET NULL,
or SET DEFAULT must be journaled to the same journal.
4 and 5 -- RFT_R00002 is in or being created into production library but
the user has debug mode UPDPROD(*NO).




Comment