tdacquisto
Programmer
Hi all,
I've written an RPGLE pgm and wanted to put a simple SQL statement into it, so I changed the source type to SQLRPGLE and imbedded the following code into my pgm:
C/EXEC SQL
C+ UPDATE EDIINHL1 SET CO = 'PRT' WHERE HDRKEY = :HDR_key
C/END-EXEC
The pgm compiles normally and when I run it, it doesn't crash. My file does not get updated, however and when I look in the joblog, here's what I see:
Query options retrieved file QAQQINI in library QUSRSYS.
**** Starting optimizer debug message for query .
The OS/400 Query access plan has been rebuilt.
Query options used to build the OS/400 query access plan.
All access paths were considered for file EDIINH.
Access path of file EDIINHL1 was used by query.
Query options retrieved file QAQQINI in library QUSRSYS.
Member EDIINH not journaled to journal *N.
EDIINH in EDI not valid for operation.
I can interactively start SQL and run the update and there is not a problem. What does journaling of my file have to do with the SQL statement? The file is not journaled.
Any ideas?
Tom.
I've written an RPGLE pgm and wanted to put a simple SQL statement into it, so I changed the source type to SQLRPGLE and imbedded the following code into my pgm:
C/EXEC SQL
C+ UPDATE EDIINHL1 SET CO = 'PRT' WHERE HDRKEY = :HDR_key
C/END-EXEC
The pgm compiles normally and when I run it, it doesn't crash. My file does not get updated, however and when I look in the joblog, here's what I see:
Query options retrieved file QAQQINI in library QUSRSYS.
**** Starting optimizer debug message for query .
The OS/400 Query access plan has been rebuilt.
Query options used to build the OS/400 query access plan.
All access paths were considered for file EDIINH.
Access path of file EDIINHL1 was used by query.
Query options retrieved file QAQQINI in library QUSRSYS.
Member EDIINH not journaled to journal *N.
EDIINH in EDI not valid for operation.
I can interactively start SQL and run the update and there is not a problem. What does journaling of my file have to do with the SQL statement? The file is not journaled.
Any ideas?
Tom.