Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL command

Status
Not open for further replies.

kcordova

Programmer
Dec 12, 2002
4
US
The file I'm updating does not need to be journal. But my SQL is failing because the file is not journalled. Could someone help me with the sql command to correct this problem.

Thanks in advance.
 
I think it would be

/exec sql
+ set option commit = *none
/end-exec

 
Compile the program with the following options:

COMMIT(*NONE) CLOSQLCSR(*ENDMOD)

This turns off the commitment control issue you mentioned, but also closes the cursors when the program ends.
 
I would recommend this. This is close to the first example.

Code:
    C/EXEC SQL                        
    C+ Set Option                     
    C+     Commit    = *NONE,         
    C+     CloSqlCsr = *ENDMOD        
    C/END-EXEC

I would recomend this way over tagrove's way because then you have to remember to set the compile options everytime, this way you don't have to worry about that.

iSeriesCodePoet
iSeries Programmer/Lawson Software Administrator
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top