× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Yes.

Just tried:

INSERT INTO schema.table
SELECT * FROM schema.table WITH NC;

It appears to still be logging the insert. It is generating lots of
reciever growth.

"Birgitta Hauser" <Hauser@xxxxxxxxxxxxxxx> wrote in
message news:003901cc76e3$8cf71ac0$a6e55040$@de...
Are you using SQL Insert and Update Operations?
If so just try to add WITH NC (=Without Commit) at the end of the Insert or
Update statement.

Mit freundlichen Grüßen / Best regards

Birgitta Hauser

"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"


-----Ursprüngliche Nachricht-----
Von: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] Im
Auftrag von Ryan Hunt
Gesendet: Monday, 19. September 2011 17:11
An: midrange-l@xxxxxxxxxxxx
Betreff: Non-Logged Operations on DB2/400

I am writing some external integration code that will be runing outside of
the AS400. It will be doing lots of data modification via native SQL
interface (over ODBC) - would prefer to avoid the QSYS.QCMDEXC interface if
possible.

I will be doing lots of data mods overnight - that do not need to be
logged - on tables that are currently journaled. I have tried the ALTER
TABLE statement with the INITIALLY NOT LOGGED option but it doesn't seem to
make a difference.

I'm looking for suggestions on how to either temporarily turn off journaling
(via SQL) on journaled tables, or perform non-logged operations (again, VIA
SQL).

I don't mind resorting to QCMDEXC if I really need to.

Thanks!




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.