× 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.



Rob,

Thanks for that information. As a COBOL programmer, if you had posted that
in the RPG list I would never have seen it. I believe it is an SQL
question, dealing with programming and not a language specific question.

Jim

On 10/10/07, rob@xxxxxxxxx <rob@xxxxxxxxx> wrote:

Trevor,

I could say that this is a RPG question, but here goes anyway.

Others have given you an option to specify when you compile. That's ok.
However SQL also has something that is much like RPG's H spec. It is
called the SET OPTION statement. I often include this in every SQLRPGLE
program like this:
C/EXEC SQL
C+ Set Option
C+ Naming = *Sys,
C+ Commit = *None,
C+ UsrPrf = *User,
C+ DynUsrPrf = *User,
C+ Datfmt = *iso,
C+ CloSqlCsr = *EndMod
C/END-EXEC
Doing it this way helps prevent you from forgetting it when you compile.

Then again, perhaps SET OPTION is not just RPG so it might qualify for
this list also...

Rob Berendt
--
Group Dekko Services, LLC
Dept 01.073
PO Box 2000
Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com





Trevor Perry <trevor@xxxxxxxxxx>
Sent by: midrange-l-bounces@xxxxxxxxxxxx
10/10/2007 11:46 AM
Please respond to
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>


To
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
cc

Fax to

Subject
Re: SQL table journal requirement






Pete,

That is the answer I needed. Our default is *CHG, so that was causing the
problem.

Thanks!
Trevor


On 10/10/07 10:52 AM, "Pete Helgren" <Pete@xxxxxxxxxx> wrote:

The only time I have run across this is when I use SQL within RPG. I
usually compile with with commitment control *NONE and it takes care of
the problem.

I can't say I have exactly encountered your situation before though. I'd
have to try it.

Pete Helgren

Trevor Perry wrote:
I created a set of SQL tables withOUT a collection - and therefore,
without
journals. I cannot write records from RPG, since the SQL tables are not
journalled.

I have since created the Collection, and solved the problem. However,
is
there a way to turn off the requirement that an SQL table be journalled
so I
can write to it?

Thanks,
Trevor





--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



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.