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



Jerry,

What will happen with a COMMIT or ROLLBACK is a very basic question. 
Actually I think it should be as I believe more people should be using 
commitment control.
However, I can understand that many people may not know this.

Let me give the introduction course to commitment control then.

First of all, let's start journalling a file.  (see CRTJRNRCV, CRTJRN, 
STRJRNPF, etc)
After you've done that every time you make a change to that file(s) an 
entry is made to the journal.
Now, let's start using commitment control.  Many programs do this 
automatically (unless you tell them otherwise).  For example, imbedded SQL 
in RPG will unless you code each statement with WITH NC, meaning "with no 
commitment control".  Or if you add SQL's version of the H spec SET 
OPTION. And use Commit    = *None.
Now, let's say you are running underneath commitment control.  You've made 
some updates to this/these file(s).  They are appropriately recorded in 
the journal receivers.  At this time you can execute a ROLLBACK operation 
which says "undo all changes to this file since the last COMMIT 
operation".
See also the command RMVJRNCHG.  This is kind of like ROLLBACK but allows 
you to specify your own granularity.

Let me give a sample.
I do the following
CREATE TABLE ROB.MYTABLE (
COLUMNA CHAR (1 ), 
COLUMNB DEC (5 , 2)) 
and I have journalling on this file.

Now I do
INSERT INTO ROB.MYTABLE VALUES('A', 2.3) 
INSERT INTO ROB.MYTABLE VALUES('B', 1.2) 
INSERT INTO ROB.MYTABLE VALUES('C', 6.25)
select * from rob.mytable
COLUMNA  COLUMNB
   A        2.30
   B        1.20
   C        6.25
COMMIT
Commit completed.
INSERT INTO ROB.MYTABLE VALUES('D', 5.05)
select * from rob.mytable
COLUMNA  COLUMNB
   A        2.30
   B        1.20
   C        6.25
   D        5.05
ROLLBACK 
Rollback completed.
select * from rob.mytable
COLUMNA  COLUMNB
   A        2.30
   B        1.20
   C        6.25

Notice how that the one insert which occurred after the COMMIT is no 
longer there?
Understand?

In STRQM you may want to look at 
10. Work with Query Manager profiles
Find your user profile.
5=Display
Look at "Commitment control level".
If you are not using journalling you may will probably have to change this 
to None.  This may help you avoid the message you saw when you started 
STRQM.

STRQM, and the option 10, will also allow you to control what SQL 
statements the users are allowed to run.


Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.