[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Restarting after commit
- Subject: Restarting after commit
- From: John Sayre <john_sayre@GAP.COM>
- Date: Wed, 4 Mar 1998 11:53:45 -0800
- References: <34FB0453.C20@gap.com> <34FDA346.1649@gap.com>
I have to produce a report and do table inserts which is causing a DB2
-905 error.
I want to do a commit, but am having problems getting the query to
pick
up where it left off.
The problem is that the query has an order by clause which orders on 6
things:
Division number
zone
region
district
store
employee id
I actually can get this to restart exactly where it was at the commit
by
putting variables
in the query where clause. (and zone# >= saved zone#)
The problem is always:
When the higher level sort resets to a lower # the lower sort has to
as
well
I can't consistently get this to restart at the place it was, but at
the
next emplid
then if the higher levels, to reset the lower levels at exactly the
right time. I get too few
rows.
Any ideas?